diff options
author | vnugent <public@vaughnnugent.com> | 2023-11-08 13:58:15 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-11-08 13:58:15 -0500 |
commit | fe13cc073a5bcd409b96a5539d6fd308605f9ac2 (patch) | |
tree | 10308288693d75c9eac7ff2edb45d9f16264fbaf /ci | |
parent | 8ae86c70aa832ce2fd1f3abab5b017e3ac2fa83e (diff) |
big package updates & update some chunk splitting
Diffstat (limited to 'ci')
-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 | ||||
-rw-r--r-- | ci/plugins.taskfile.yaml | 19 | ||||
-rw-r--r-- | ci/taskfile.yaml | 4 |
5 files changed, 43 insertions, 35 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": "" diff --git a/ci/plugins.taskfile.yaml b/ci/plugins.taskfile.yaml index 08a3525..e27a278 100644 --- a/ci/plugins.taskfile.yaml +++ b/ci/plugins.taskfile.yaml @@ -1,9 +1,12 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software version: "3" vars: - tasks: all: @@ -12,6 +15,7 @@ tasks: - task: install-accounts - task: install-sessions - task: install-vncache + - task: install-vncache-sessions - task: install-router - task: install-users - task: build-cmnext @@ -77,7 +81,18 @@ tasks: install-vncache: cmds: - #install sessions plugin + #install vncache global cache provider plugin + - task: install-plugin + vars: + NAME: 'VNLib.Data.Caching.Providers.VNCache' + PROJECT_NAME: 'VNLib.Data.Caching.Providers.VNCache' + MODULE_NAME: "VNLib.Data.Caching" + FILE_NAME: "release.tgz" + DIR: './plugins/assets/VNLib.Data.Caching.Providers.VNCache' + + install-vncache-sessions: + cmds: + #install vncache-web-sessions plugin - task: install-plugin vars: NAME: 'VNLib.Plugins.Sessions.VNCache' diff --git a/ci/taskfile.yaml b/ci/taskfile.yaml index 5028419..fdf12b0 100644 --- a/ci/taskfile.yaml +++ b/ci/taskfile.yaml @@ -1,3 +1,7 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software version: "3" |