diff options
Diffstat (limited to 'ci/config')
-rw-r--r-- | ci/config/Essentials.Accounts.json | 15 | ||||
-rw-r--r-- | ci/config/SessionProvider.json | 23 | ||||
-rw-r--r-- | ci/config/config.json | 17 |
3 files changed, 22 insertions, 33 deletions
diff --git a/ci/config/Essentials.Accounts.json b/ci/config/Essentials.Accounts.json index e02c1fc..bde9ff8 100644 --- a/ci/config/Essentials.Accounts.json +++ b/ci/config/Essentials.Accounts.json @@ -1,13 +1,12 @@ { "debug": false, - "setup_mode":true, //endpoints "login_endpoint": { "path": "/account/login", - "failed_count_timeout_sec": 600, //10 minutes - "failed_count_max": 10 //10 failed attempts in 10 minutes + "max_login_attempts": 10, //10 failed attempts in 10 minutes + "failed_attempt_timeout_sec": 600 //10 minutes }, "keepalive_endpoint": { @@ -35,11 +34,9 @@ "pki_auth_endpoint": { "path": "/account/pki", "jwt_time_dif_sec": 30, - "max_login_attempts": 10, "failed_attempt_timeout_sec": 600, - - //Configures the PATCH method to update the user's stored key when logged in + //Configures the PATCH and DELETE methods to update the user's stored key when logged in "enable_key_update": true }, @@ -51,7 +48,7 @@ //Defines totp specific arguments "totp": { "digits": 6, - "issuer": "localhost", + "issuer": "CMNext", "period_secs": 30, "algorithm": "sha1", "secret_size": 32, @@ -63,17 +60,13 @@ "account_security": { //Time in seconds before a session is considered expired "session_valid_for_sec": 3600, - //Path/domain for all security cookies "cookie_domain": "", "cookie_path": "/", - "status_cookie_name": "li", - "otp_header_name": "X-Web-Token", "otp_time_diff_sec": 30, "otp_key_size": 64, - "pubkey_cookie_name": "client-id", "pubkey_signing_key_size": 32 } diff --git a/ci/config/SessionProvider.json b/ci/config/SessionProvider.json index 1875e73..a578b0d 100644 --- a/ci/config/SessionProvider.json +++ b/ci/config/SessionProvider.json @@ -17,26 +17,5 @@ "valid_for_sec": 3600, //The maxium number of connections waiting for the cache server responses "max_waiting_connections": 100 - }, - - //Enable vncache as the providers above rely on the object caching server - "vncache": { - - //Max size (in bytes) of allowed data to be stored in each user's session object - "max_object_size": 8128, - - //Initial nodes to discover from - "initial_nodes": [], - - //Setting this value to true will cause the cache store to load a memory-only instance, without remote backing - "memory_only": true, - - //enable memory cache - "memory_cache": { - "buckets": 20, - "bucket_size": 5000, - "max_age_sec": 600, - "refresh_interval_sec": 60 - } - } + } }
\ No newline at end of file diff --git a/ci/config/config.json b/ci/config/config.json index 0693a8f..e70899f 100644 --- a/ci/config/config.json +++ b/ci/config/config.json @@ -148,6 +148,23 @@ //"ms_security": false }, + //caching should be setup globally after VNCache #78a47dd + "cache":{ + //Load the vncache dll + "assembly_name": "VNLib.Data.Caching.Providers.VNCache.dll", + //Defaulting to memory only for now + "memory_only": true, + //enable memory cache + "memory_cache": { + "buckets": 20, + "bucket_size": 5000, + "max_age_sec": 600, + "refresh_interval_sec": 60, + "zero_all": false, + "max_object_size": 8128 + } + }, + //Global secrets object, used by the host and pluings for a specialized secrets "secrets": { //"db_password": "" |