aboutsummaryrefslogtreecommitdiff
path: root/ci/config
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config')
-rw-r--r--ci/config/SimpleBookmark.json13
-rw-r--r--ci/config/config.json34
2 files changed, 30 insertions, 17 deletions
diff --git a/ci/config/SimpleBookmark.json b/ci/config/SimpleBookmark.json
index 6cb1b93..64be3c1 100644
--- a/ci/config/SimpleBookmark.json
+++ b/ci/config/SimpleBookmark.json
@@ -14,6 +14,19 @@
}
},
+ //System website lookup endpoint (aka curl)
+ "curl": {
+ "path": "/api/lookup",
+ "exe_path": "curl", //Path to the curl executable
+ "extra_args": [
+ "--globoff", //Disables unsafe url globbing
+ "--no-keepalive", //Disables keepalive, uneeded for a single lookup request
+ "--max-filesize", "100K", //Max file size 100K
+ "--max-redirs", "5", //Max redirects 5
+ "--location", //Follow redirects
+ ]
+ },
+
"registration": {
"path": "/api/register", //Path for the registration endpoint
"token_lifetime_mins": 360, //Token lifetime in minutes
diff --git a/ci/config/config.json b/ci/config/config.json
index e4b33e8..61293b6 100644
--- a/ci/config/config.json
+++ b/ci/config/config.json
@@ -41,7 +41,7 @@
//Setup the native lib
"vnlib.net.compression": {
- "lib_path": "lib/vnlib_compress/build/<os-dependent-lib-path>",
+ "lib_path": "lib/vnlib_compress.dll",
"level": 1
},
@@ -95,16 +95,16 @@
//"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
@@ -129,29 +129,29 @@
"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": {
"debug": false,
"provider": "VNLib.Plugins.Extensions.Sql.SQLite.dll",
- "source": "simple-bookmark.db" //For sqlite only
+ "source": "data/simple-bookmark.db" //For sqlite only
},
//caching should be setup globally after VNCache #78a47dd