aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index abd9c2003..8ceefbd0e 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -277,6 +277,10 @@ let CONSTRAINTS_FIELDS = {
277 CONTACT_FORM: { 277 CONTACT_FORM: {
278 FROM_NAME: { min: 1, max: 120 }, // Length 278 FROM_NAME: { min: 1, max: 120 }, // Length
279 BODY: { min: 3, max: 5000 } // Length 279 BODY: { min: 3, max: 5000 } // Length
280 },
281 PLUGINS: {
282 NAME: { min: 1, max: 214 }, // Length
283 DESCRIPTION: { min: 1, max: 20000 } // Length
280 } 284 }
281} 285}
282 286
@@ -578,6 +582,11 @@ const P2P_MEDIA_LOADER_PEER_VERSION = 2
578 582
579// --------------------------------------------------------------------------- 583// ---------------------------------------------------------------------------
580 584
585const PLUGIN_GLOBAL_CSS_FILE_NAME = 'plugins-global.css'
586const PLUGIN_GLOBAL_CSS_PATH = join(CONFIG.STORAGE.TMP_DIR, PLUGIN_GLOBAL_CSS_FILE_NAME)
587
588// ---------------------------------------------------------------------------
589
581// Special constants for a test instance 590// Special constants for a test instance
582if (isTestInstance() === true) { 591if (isTestInstance() === true) {
583 PRIVATE_RSA_KEY_SIZE = 1024 592 PRIVATE_RSA_KEY_SIZE = 1024
@@ -650,6 +659,8 @@ export {
650 REMOTE_SCHEME, 659 REMOTE_SCHEME,
651 FOLLOW_STATES, 660 FOLLOW_STATES,
652 SERVER_ACTOR_NAME, 661 SERVER_ACTOR_NAME,
662 PLUGIN_GLOBAL_CSS_FILE_NAME,
663 PLUGIN_GLOBAL_CSS_PATH,
653 PRIVATE_RSA_KEY_SIZE, 664 PRIVATE_RSA_KEY_SIZE,
654 ROUTE_CACHE_LIFETIME, 665 ROUTE_CACHE_LIFETIME,
655 SORTABLE_COLUMNS, 666 SORTABLE_COLUMNS,