aboutsummaryrefslogtreecommitdiff
path: root/ci/config-templates/SessionProvider-template.json
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-06-24 16:46:04 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-06-24 16:46:04 -0400
commita355e12201f50d8f52738d225c270042913030e2 (patch)
tree57cc8e43357ae0cf4cdd72e8f43d5da2357c1f22 /ci/config-templates/SessionProvider-template.json
parent86d6ba0c9869f21b2b16728abf4cb20fcf6ed769 (diff)
ci: Consolidate ci configuration
Diffstat (limited to 'ci/config-templates/SessionProvider-template.json')
-rw-r--r--ci/config-templates/SessionProvider-template.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/ci/config-templates/SessionProvider-template.json b/ci/config-templates/SessionProvider-template.json
new file mode 100644
index 0000000..328f06f
--- /dev/null
+++ b/ci/config-templates/SessionProvider-template.json
@@ -0,0 +1,25 @@
+{
+
+ "debug": ${DEBUG_PLUGINS},
+
+ //Provider assemblies to load
+ "provider_assemblies": [ "VNLib.Plugins.Sessions.VNCache.dll" ],
+
+ //Web session provider, valid format for VNCache and also memory sessions
+ "web": {
+ //Cache system key prefix
+ "cache_prefix": "websessions",
+ //The session cookie name
+ "cookie_name": "sb-session",
+ //Size in bytes for generated session ids
+ "cookie_size": 40,
+ //time (in seconds) a session is valid for
+ "valid_for_sec": 3600,
+ //The maxium number of connections waiting for the cache server responses
+ "max_waiting_connections": 100,
+ //Enforce strict cross-origin session checks
+ "strict_cors": true,
+ ///Enforces strict TLS to help prevent tls downgrades based on stored session variables (privacy note: this can be leaked through brute-forced if session id is stolen)
+ "strict_tls_protocol": true
+ }
+} \ No newline at end of file