diff options
Diffstat (limited to 'server/controllers/static.ts')
-rw-r--r-- | server/controllers/static.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index e65c7afd3..be5fcc8ed 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -1,12 +1,12 @@ | |||
1 | import * as cors from 'cors' | 1 | import * as cors from 'cors' |
2 | import * as express from 'express' | 2 | import * as express from 'express' |
3 | import { | 3 | import { |
4 | CONFIG, | ||
5 | HLS_STREAMING_PLAYLIST_DIRECTORY, | 4 | HLS_STREAMING_PLAYLIST_DIRECTORY, |
6 | ROUTE_CACHE_LIFETIME, | 5 | ROUTE_CACHE_LIFETIME, |
7 | STATIC_DOWNLOAD_PATHS, | 6 | STATIC_DOWNLOAD_PATHS, |
8 | STATIC_MAX_AGE, | 7 | STATIC_MAX_AGE, |
9 | STATIC_PATHS | 8 | STATIC_PATHS, |
9 | WEBSERVER | ||
10 | } from '../initializers' | 10 | } from '../initializers' |
11 | import { VideosCaptionCache, VideosPreviewCache } from '../lib/files-cache' | 11 | import { VideosCaptionCache, VideosPreviewCache } from '../lib/files-cache' |
12 | import { cacheRoute } from '../middlewares/cache' | 12 | import { cacheRoute } from '../middlewares/cache' |
@@ -17,6 +17,7 @@ import { VideoCommentModel } from '../models/video/video-comment' | |||
17 | import { HttpNodeinfoDiasporaSoftwareNsSchema20 } from '../../shared/models/nodeinfo' | 17 | import { HttpNodeinfoDiasporaSoftwareNsSchema20 } from '../../shared/models/nodeinfo' |
18 | import { join } from 'path' | 18 | import { join } from 'path' |
19 | import { root } from '../helpers/core-utils' | 19 | import { root } from '../helpers/core-utils' |
20 | import { CONFIG } from '../initializers/config' | ||
20 | 21 | ||
21 | const packageJSON = require('../../../package.json') | 22 | const packageJSON = require('../../../package.json') |
22 | const staticRouter = express.Router() | 23 | const staticRouter = express.Router() |
@@ -121,7 +122,7 @@ staticRouter.use('/.well-known/nodeinfo', | |||
121 | links: [ | 122 | links: [ |
122 | { | 123 | { |
123 | rel: 'http://nodeinfo.diaspora.software/ns/schema/2.0', | 124 | rel: 'http://nodeinfo.diaspora.software/ns/schema/2.0', |
124 | href: CONFIG.WEBSERVER.URL + '/nodeinfo/2.0.json' | 125 | href: WEBSERVER.URL + '/nodeinfo/2.0.json' |
125 | } | 126 | } |
126 | ] | 127 | ] |
127 | }) | 128 | }) |