diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-29 16:16:24 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-10 14:02:41 +0200 |
commit | 5fb2e2888ce032c638e4b75d07458642f0833e52 (patch) | |
tree | 8830d873569316889b8134027e9a43b198cca38f /server/initializers/config.ts | |
parent | 62e7be634bc189f942ae51cb4b080079ab503ff0 (diff) | |
download | PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.gz PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.zst PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.zip |
First implem global search
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 44fd9045b..5b402dd74 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -104,12 +104,6 @@ const CONFIG = { | |||
104 | }, | 104 | }, |
105 | ANONYMIZE_IP: config.get<boolean>('log.anonymizeIP') | 105 | ANONYMIZE_IP: config.get<boolean>('log.anonymizeIP') |
106 | }, | 106 | }, |
107 | SEARCH: { | ||
108 | REMOTE_URI: { | ||
109 | USERS: config.get<boolean>('search.remote_uri.users'), | ||
110 | ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous') | ||
111 | } | ||
112 | }, | ||
113 | TRENDING: { | 107 | TRENDING: { |
114 | VIDEOS: { | 108 | VIDEOS: { |
115 | INTERVAL_DAYS: config.get<number>('trending.videos.interval_days') | 109 | INTERVAL_DAYS: config.get<number>('trending.videos.interval_days') |
@@ -297,6 +291,18 @@ const CONFIG = { | |||
297 | get MESSAGE () { return config.get<string>('broadcast_message.message') }, | 291 | get MESSAGE () { return config.get<string>('broadcast_message.message') }, |
298 | get LEVEL () { return config.get<BroadcastMessageLevel>('broadcast_message.level') }, | 292 | get LEVEL () { return config.get<BroadcastMessageLevel>('broadcast_message.level') }, |
299 | get DISMISSABLE () { return config.get<boolean>('broadcast_message.dismissable') } | 293 | get DISMISSABLE () { return config.get<boolean>('broadcast_message.dismissable') } |
294 | }, | ||
295 | SEARCH: { | ||
296 | REMOTE_URI: { | ||
297 | USERS: config.get<boolean>('search.remote_uri.users'), | ||
298 | ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous') | ||
299 | }, | ||
300 | SEARCH_INDEX: { | ||
301 | get ENABLED () { return config.get<boolean>('search.search_index.enabled') }, | ||
302 | get URL () { return config.get<string>('search.search_index.url') }, | ||
303 | get DISABLE_LOCAL_SEARCH () { return config.get<boolean>('search.search_index.disable_local_search') }, | ||
304 | get IS_DEFAULT_SEARCH () { return config.get<boolean>('search.search_index.is_default_search') } | ||
305 | } | ||
300 | } | 306 | } |
301 | } | 307 | } |
302 | 308 | ||