aboutsummaryrefslogtreecommitdiff
path: root/ci/container
diff options
context:
space:
mode:
Diffstat (limited to 'ci/container')
-rw-r--r--ci/container/Dockerfile3
-rw-r--r--ci/container/config-templates/SimpleBookmark-template.json20
-rw-r--r--ci/container/config-templates/config-template.json3
-rw-r--r--ci/container/docker-compose.yaml1
4 files changed, 15 insertions, 12 deletions
diff --git a/ci/container/Dockerfile b/ci/container/Dockerfile
index b7898d4..a6d35d4 100644
--- a/ci/container/Dockerfile
+++ b/ci/container/Dockerfile
@@ -5,7 +5,7 @@
FROM alpine:3.19 as native-cont
#install public libs and build tools
-RUN apk update && apk add build-base cmake npm git
+RUN apk update && apk add --no-cache build-base cmake npm git
#most universal way to use Task is from NPM
RUN npm install -g @go-task/cli
@@ -84,6 +84,7 @@ ENV VNCACHE_CACHE_PUBLIC_KEY=""
#HTTP/PROXY Config
ENV HTTP_DOWNSTREAM_SERVERS=[]
ENV SSL_JSON="{}"
+ENV HTTP_TRACE_ON=false
#run the init script within dumb-init
ENTRYPOINT ["dumb-init", "--"]
diff --git a/ci/container/config-templates/SimpleBookmark-template.json b/ci/container/config-templates/SimpleBookmark-template.json
index c2bf780..610673e 100644
--- a/ci/container/config-templates/SimpleBookmark-template.json
+++ b/ci/container/config-templates/SimpleBookmark-template.json
@@ -7,7 +7,7 @@
"path": "/api/bookmarks", //Path for the bookmarks endpoint
- "config": {
+ "config": {
"max_limit": 100, //Max results per page
"default_limit": 20, //Default results per page
"user_quota": ${MAX_BOOKMARKS} //Max bookmarks per user
@@ -19,19 +19,17 @@
"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
+ "--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
- "key_regen_interval_mins": ${REG_TOKEN_DURATION_MIN}0 //Signing key regeneration interval in minutes
+ "path": "/api/register", //Path for the registration endpoint
+ "token_lifetime_mins": ${REG_TOKEN_DURATION_MIN}, //Token lifetime in minutes
+ "key_regen_interval_mins": ${REG_TOKEN_DURATION_MIN}0 //Signing key regeneration interval in minutes
}
} \ No newline at end of file
diff --git a/ci/container/config-templates/config-template.json b/ci/container/config-templates/config-template.json
index e226efb..0bd0ddb 100644
--- a/ci/container/config-templates/config-template.json
+++ b/ci/container/config-templates/config-template.json
@@ -52,6 +52,9 @@
//Collection of objects to define hosts+interfaces to build server listeners from
"virtual_hosts": [
{
+
+ "trace": ${HTTP_TRACE_ON},
+
//The interface to bind to, you may not mix TLS and non-TLS connections on the same interface
"interface": {
"address": "0.0.0.0",
diff --git a/ci/container/docker-compose.yaml b/ci/container/docker-compose.yaml
index 1ffee2f..465615d 100644
--- a/ci/container/docker-compose.yaml
+++ b/ci/container/docker-compose.yaml
@@ -43,6 +43,7 @@ services:
#HTTP
HTTP_DOWNSTREAM_SERVERS: '[]'
+ HTTP_TRACE_ON: "false"
#SSL_JSON: '{"cert": "ssl/cert.pem", "privkey":"ssl/priv.pem"}'
SERVER_ARGS: ""