aboutsummaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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