diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-03 15:19:43 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 16:32:58 +0100 |
commit | 9677fca772349248925da6c5f34f600e9a2abbe6 (patch) | |
tree | 635c9aba8c4966eb9fd77355a47bcb83dff9df71 /server/controllers/static.ts | |
parent | 52cc0d54850e0acf069d2f95d063826f16ff5238 (diff) | |
download | PeerTube-9677fca772349248925da6c5f34f600e9a2abbe6.tar.gz PeerTube-9677fca772349248925da6c5f34f600e9a2abbe6.tar.zst PeerTube-9677fca772349248925da6c5f34f600e9a2abbe6.zip |
Make the search helper change based on the server config
Diffstat (limited to 'server/controllers/static.ts')
-rw-r--r-- | server/controllers/static.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 4c6cf9597..75d1a816b 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -235,6 +235,12 @@ async function generateNodeinfo (req: express.Request, res: express.Response) { | |||
235 | nodeName: CONFIG.INSTANCE.NAME, | 235 | nodeName: CONFIG.INSTANCE.NAME, |
236 | nodeDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION, | 236 | nodeDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION, |
237 | nodeConfig: { | 237 | nodeConfig: { |
238 | search: { | ||
239 | remoteUri: { | ||
240 | users: CONFIG.SEARCH.REMOTE_URI.USERS, | ||
241 | anonymous: CONFIG.SEARCH.REMOTE_URI.ANONYMOUS | ||
242 | } | ||
243 | }, | ||
238 | plugin: { | 244 | plugin: { |
239 | registered: getRegisteredPlugins() | 245 | registered: getRegisteredPlugins() |
240 | }, | 246 | }, |