aboutsummaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-04-01 22:05:40 +0000
committerterminaldweller <thabogre@gmail.com>2022-04-01 22:05:40 +0000
commite43d90efe20ed06090ad1034b789e7a1b6ee00fe (patch)
treeeceacdd49995fcb08cfde73c836e3c0adc7ebb81 /docker-entrypoint.sh
parentadded README. /wiki is working now. (diff)
downloaddevourer-e43d90efe20ed06090ad1034b789e7a1b6ee00fe.tar.gz
devourer-e43d90efe20ed06090ad1034b789e7a1b6ee00fe.zip
wip
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh18
1 files changed, 16 insertions, 2 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 92e2537..43159f2 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -1,7 +1,21 @@
#!/usr/bin/env sh
if [ "$SERVER_DEPLOYMENT_TYPE" = "deployment" ]; then
- uvicorn devourer:app --host 0.0.0.0 --port 80 --ssl-certfile /certs/server.cert --ssl-keyfile /certs/server.key
+ uvicorn devourer:app \
+ --host 0.0.0.0 \
+ --port 80 \
+ --ssl-certfile /certs/server.cert \
+ --ssl-keyfile /certs/server.key \
+ --no-proxy-headers \
+ --no-server-headers \
+ --no-date-headers
elif [ "$SERVER_DEPLOYMENT_TYPE" = "test" ]; then
- uvicorn devourer:app --host 0.0.0.0 --port 80 --ssl-certfile /certs/server.cert --ssl-keyfile /certs/server.key
+ uvicorn devourer:app \
+ --host 0.0.0.0 \
+ --port 80 \
+ --ssl-certfile /certs/server.cert \
+ --ssl-keyfile /certs/server.key \
+ --no-proxy-headers \
+ --no-server-headers \
+ --no-date-headers
fi