aboutsummaryrefslogtreecommitdiff
path: root/ci/config/config.json
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config/config.json')
-rw-r--r--ci/config/config.json81
1 files changed, 40 insertions, 41 deletions
diff --git a/ci/config/config.json b/ci/config/config.json
index b410399..29a0665 100644
--- a/ci/config/config.json
+++ b/ci/config/config.json
@@ -37,7 +37,13 @@
},
//Path to managed compressor library
- "compression_lib": null,
+ "compression_lib": "lib/vnlib.net.compression/VNLib.Net.Compression.dll",
+
+ //Setup the native lib
+ "vnlib.net.compression": {
+ "lib_path": "lib/vnlib_compress.dll",
+ "level": 1
+ },
//Maximum ammount of time a request is allowed to be processed (includes loading or waiting for sessions) before operations will be cancelled and a 503 returned
"max_execution_time_ms": 20000,
@@ -45,6 +51,9 @@
//Collection of objects to define hosts+interfaces to build server listeners from
"virtual_hosts": [
{
+ //Enable nginx-style connection tracing for this endpoint
+ "trace": false,
+
//The interface to bind to, you may not mix TLS and non-TLS connections on the same interface
"interface": {
"address": "0.0.0.0",
@@ -78,6 +87,7 @@
"X-Content-Type-Options": "nosniff",
"X-Xss-Protection": "1; mode=block",
"X-Frame-Options": "DENY",
+ "Server": "VNLib.Webserver",
"Content-Security-Policy": "default-src 'self' https://cdn.ckeditor.com 'unsafe-inline'; img-src 'self' blob: data:; frame-src 'none'; object-src 'none'; referrer no-referrer-when-downgrade; upgrade-insecure-requests; block-all-mixed-content;"
},
@@ -88,30 +98,23 @@
//"cors_allowed_authority": [ "localhost:8080" ],
//Define a TLS certificate (enables TLS on the interface)
- "disabled ssl": {
+ "ssl": {
//Cert may be pem or pfx (include private key in pfx, or include private key in a pem file)
- "cert": "/path/to/cert.pfx|pem",
+ "cert": "ssl/cert.pem",
//A pem encoded private key, REQUIRED if using a PEM certificate, may be encrypted with a password
- "privkey": "/path/to/private_key.pem",
+ "privkey": "ssl/key.pem",
//An optional password for the ssl private key
- "password": "plain-text-password",
+ //"password": "plain-text-password",
//requires that any client connecting to this host present a valid certificate
"client_cert_required": false
},
//A list of error file objects, files are loaded into memory (and watched for changes) and returned when the specified error code occurs
- "error_files": [
- /*
- {
- "code": 404,
- "path": "404.html"
- },
- */
- ],
+ "error_files": [],
//The default
"cache_default_sec": 864000
@@ -125,59 +128,55 @@
"hot_reload": false,
"reload_delay_sec": 2,
"path": "plugins",
- "config_dir": "config"
+ "config_dir": "config",
+ "assets": "plugins/assets/"
},
- "disabled sys_log": {
- //"path": "path/to/syslog/file",
+ "sys_log": {
+ "path": "data/logs/syslog.txt",
//"template": "serilog template for writing to file",
- //"flush_sec": 5,
- //"retained_files": 31,
- //"file_size_limit": 10485760,
- //"interval": "infinite"
+ "flush_sec": 5,
+ "retained_files": 10,
+ "file_size_limit": 10485760,
+ "interval": "infinite"
},
"disabled app_log": {
- //"path": "path/to/applog/file",
+ "path": "data/logs/applog.txt",
//"template": "serilog template for writing to file",
- //"flush_sec": 5,
- //"retained_files": 31,
- //"file_size_limit": 10485760,
- //"interval": "infinite"
+ "flush_sec": 5,
+ "retained_files": 10,
+ "file_size_limit": 10485760,
+ "interval": "infinite"
},
//Sql for the users database
"sql": {
- "db_type": "sqlite", //mysql, mssql(default), sqlite
- "source": "cmnext.db" //For sqlite only
-
- //"hostname": "example.com",
- //"username": "cmnext",
- //"catalog": "cmnext",
- //"min_pool_size": 5,
- //"ms_security": false
+ "debug": false,
+ "provider": "VNLib.Plugins.Extensions.Sql.SQLite.dll",
+ "source": "data/cmnext.db" //For sqlite only
},
//caching should be setup globally after VNCache #78a47dd
- "cache":{
+ "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
+ "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": ""
- "passwords": "yourbase64passwordsecret"
+ "passwords": "file://secrets/password-pepper.json"
}
}