aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index c8623a5d4..c8e50dd53 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -645,6 +645,8 @@ const P2P_MEDIA_LOADER_PEER_VERSION = 2
645const PLUGIN_GLOBAL_CSS_FILE_NAME = 'plugins-global.css' 645const PLUGIN_GLOBAL_CSS_FILE_NAME = 'plugins-global.css'
646const PLUGIN_GLOBAL_CSS_PATH = join(CONFIG.STORAGE.TMP_DIR, PLUGIN_GLOBAL_CSS_FILE_NAME) 646const PLUGIN_GLOBAL_CSS_PATH = join(CONFIG.STORAGE.TMP_DIR, PLUGIN_GLOBAL_CSS_FILE_NAME)
647 647
648let PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME = 1000 * 60 * 5 // 5 minutes
649
648const DEFAULT_THEME_NAME = 'default' 650const DEFAULT_THEME_NAME = 'default'
649const DEFAULT_USER_THEME_NAME = 'instance-default' 651const DEFAULT_USER_THEME_NAME = 'instance-default'
650 652
@@ -686,6 +688,8 @@ if (isTestInstance() === true) {
686 FILES_CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000 688 FILES_CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000
687 MEMOIZE_TTL.OVERVIEWS_SAMPLE = 3000 689 MEMOIZE_TTL.OVERVIEWS_SAMPLE = 3000
688 OVERVIEWS.VIDEOS.SAMPLE_THRESHOLD = 2 690 OVERVIEWS.VIDEOS.SAMPLE_THRESHOLD = 2
691
692 PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME = 5000
689} 693}
690 694
691updateWebserverUrls() 695updateWebserverUrls()
@@ -778,6 +782,7 @@ export {
778 VIDEO_VIEW_LIFETIME, 782 VIDEO_VIEW_LIFETIME,
779 CONTACT_FORM_LIFETIME, 783 CONTACT_FORM_LIFETIME,
780 VIDEO_PLAYLIST_PRIVACIES, 784 VIDEO_PLAYLIST_PRIVACIES,
785 PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME,
781 ASSETS_PATH, 786 ASSETS_PATH,
782 loadLanguages, 787 loadLanguages,
783 buildLanguages 788 buildLanguages