diff options
Diffstat (limited to 'server/models/video/video-file.ts')
-rw-r--r-- | server/models/video/video-file.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video-file.ts b/server/models/video/video-file.ts index c20c90c1b..9c4e6d078 100644 --- a/server/models/video/video-file.ts +++ b/server/models/video/video-file.ts | |||
@@ -54,6 +54,7 @@ import { doesExist } from '../shared' | |||
54 | import { parseAggregateResult, throwIfNotValid } from '../utils' | 54 | import { parseAggregateResult, throwIfNotValid } from '../utils' |
55 | import { VideoModel } from './video' | 55 | import { VideoModel } from './video' |
56 | import { VideoStreamingPlaylistModel } from './video-streaming-playlist' | 56 | import { VideoStreamingPlaylistModel } from './video-streaming-playlist' |
57 | import { CONFIG } from '@server/initializers/config' | ||
57 | 58 | ||
58 | export enum ScopeNames { | 59 | export enum ScopeNames { |
59 | WITH_VIDEO = 'WITH_VIDEO', | 60 | WITH_VIDEO = 'WITH_VIDEO', |
@@ -511,7 +512,7 @@ export class VideoFileModel extends Model<Partial<AttributesOnly<VideoFileModel> | |||
511 | // --------------------------------------------------------------------------- | 512 | // --------------------------------------------------------------------------- |
512 | 513 | ||
513 | getObjectStorageUrl (video: MVideo) { | 514 | getObjectStorageUrl (video: MVideo) { |
514 | if (video.hasPrivateStaticPath()) { | 515 | if (video.hasPrivateStaticPath() && CONFIG.OBJECT_STORAGE.PROXY.PROXIFY_PRIVATE_FILES === true) { |
515 | return this.getPrivateObjectStorageUrl(video) | 516 | return this.getPrivateObjectStorageUrl(video) |
516 | } | 517 | } |
517 | 518 | ||