aboutsummaryrefslogtreecommitdiff
path: root/ci/config
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config')
-rw-r--r--ci/config/SimpleBookmark.json16
-rw-r--r--ci/config/config.json15
2 files changed, 16 insertions, 15 deletions
diff --git a/ci/config/SimpleBookmark.json b/ci/config/SimpleBookmark.json
index f097602..6cb1b93 100644
--- a/ci/config/SimpleBookmark.json
+++ b/ci/config/SimpleBookmark.json
@@ -1,16 +1,22 @@
{
//Comments are allowed
- "debug": false,
+ "debug": false, //Enables obnoxious debug logging
"bm_endpoint": {
- "path": "/api/bookmarks", //Path for the bookmarks endpoint
+ "path": "/api/bookmarks", //Path for the bookmarks endpoint
"config": {
- "max_limit": 100, //Max results per page
- "default_limit": 20, //Default results per page
- "user_quota": 5000 //Max bookmarks per user
+ "max_limit": 100, //Max results per page
+ "default_limit": 20, //Default results per page
+ "user_quota": 5000 //Max bookmarks per user
}
+ },
+
+ "registration": {
+ "path": "/api/register", //Path for the registration endpoint
+ "token_lifetime_mins": 360, //Token lifetime in minutes
+ "key_regen_interval_mins": 3600 //Signing key regeneration interval in minutes
}
} \ No newline at end of file
diff --git a/ci/config/config.json b/ci/config/config.json
index 4740cd3..e4b33e8 100644
--- a/ci/config/config.json
+++ b/ci/config/config.json
@@ -84,6 +84,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' '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;"
},
@@ -125,7 +126,7 @@
"reload_delay_sec": 2,
"path": "plugins",
"config_dir": "config",
- "assets": "plugins/assets"
+ "assets": "plugins/assets/"
},
"disabled sys_log": {
@@ -148,15 +149,9 @@
//Sql for the users database
"sql": {
- "db_type": "sqlite", //mysql, mssql(default), sqlite
- "source": "simple-bookmark.db" //For sqlite only
-
- //"hostname": "example.com",
- //"username": "simple-bookmark",
- //"catalog": "simple-bookmark",
- //"min_pool_size": 5,
- //"ms_security": false
- //"trust_cert": false
+ "debug": false,
+ "provider": "VNLib.Plugins.Extensions.Sql.SQLite.dll",
+ "source": "simple-bookmark.db" //For sqlite only
},
//caching should be setup globally after VNCache #78a47dd