Subtitles are also sent on reshare

This commit is contained in:
DrMint 2024-04-11 07:37:07 +02:00
parent 23b1c16bf7
commit 5e306cfde3
3 changed files with 8 additions and 3 deletions

View File

@ -18,6 +18,6 @@ WEB_HOOK_URI=https://accords-library.com/some/path
SFTP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nxxxxxxxxxx..."
SFTP_USERNAME=someuser
SFTP_HOST=ftp.host.com
SFTP_HOST=host.com
SFTP_DESTINATION_PATH_ROOT="/absolute/path/to/destination/root/folder"
SFTP_BASE_URL=https://ftp-base-url.com
SFTP_BASE_URL=https://base-url.com

View File

@ -7,8 +7,8 @@ export const VideosSubtitles = buildCollectionConfig({
labels: { singular: "Video Subtitle", plural: "Videos Subtitles" },
admin: { group: CollectionGroups.Media, disableDuplicate: true, hidden: shownOnlyToAdmin },
upload: {
staticDir: `../uploads/${Collections.VideosSubtitles}`,
mimeTypes: ["text/*"],
disableLocalStorage: true,
},
timestamps: false,
fields: [],

View File

@ -95,6 +95,11 @@ export default buildConfig({
disableLocalStorage: true,
disablePayloadAccessControl: true,
},
[Collections.VideosSubtitles]: {
adapter: configuredFtpAdapter,
disableLocalStorage: true,
disablePayloadAccessControl: true,
},
[Collections.Audios]: {
adapter: configuredFtpAdapter,
disableLocalStorage: true,