aboutsummaryrefslogtreecommitdiff
path: root/ci/container
diff options
context:
space:
mode:
Diffstat (limited to 'ci/container')
-rw-r--r--ci/container/config-templates/SimpleBookmark-template.json15
-rw-r--r--ci/container/docker-compose.yaml4
-rw-r--r--ci/container/run.sh2
3 files changed, 19 insertions, 2 deletions
diff --git a/ci/container/config-templates/SimpleBookmark-template.json b/ci/container/config-templates/SimpleBookmark-template.json
index a64a10a..c2bf780 100644
--- a/ci/container/config-templates/SimpleBookmark-template.json
+++ b/ci/container/config-templates/SimpleBookmark-template.json
@@ -14,6 +14,21 @@
}
},
+ //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": ${REG_TOKEN_DURATION_MIN}, //Token lifetime in minutes
diff --git a/ci/container/docker-compose.yaml b/ci/container/docker-compose.yaml
index eb28055..03eb815 100644
--- a/ci/container/docker-compose.yaml
+++ b/ci/container/docker-compose.yaml
@@ -27,6 +27,7 @@ services:
CACHE_ASM_PATH: "VNLib.Data.Caching.Providers.VNCache.dll"
MEMCACHE_ONLY: "true"
REDIS_CONNECTION_STRING: ""
+ #at least one node required if MEMCACHE_ONLY is false
VNCACHE_INITIAL_NODES: "[]"
#ACCOUNTS
MAX_LOGIN_ATTEMPS: "10"
@@ -35,6 +36,7 @@ services:
PASSWORD_PEPPER: ""
DATABASE_PASSWORD: ""
REDIS_PASSWORD: ""
+ #if MEMCACHE_ONLY is false, then the following keys are required to connect to a VNCACHE cluster
VNCACHE_CLIENT_PRIVATE_KEY: ""
VNCACHE_CACHE_PUBLIC_KEY: ""
@@ -42,5 +44,5 @@ services:
HTTP_DOWNSTREAM_SERVERS: '[]'
#SSL_JSON: '{"cert": "ssl/cert.pem", "privkey":"ssl/priv.pem"}'
- SERVER_ARGS: "--input-off"
+ SERVER_ARGS: ""
diff --git a/ci/container/run.sh b/ci/container/run.sh
index 2c2636c..c780929 100644
--- a/ci/container/run.sh
+++ b/ci/container/run.sh
@@ -12,4 +12,4 @@ done
cp usr/assets/* plugins/assets/ -rf
#start the server
-dotnet webserver/VNLib.WebServer.dll --config config/config.json $SERVER_ARGS \ No newline at end of file
+dotnet webserver/VNLib.WebServer.dll --config config/config.json --input-off $SERVER_ARGS \ No newline at end of file