aboutsummaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
blob: 43159f2c765fb68abe8fcbb29460096b0811daf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 \
    --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 \
    --no-proxy-headers \
    --no-server-headers \
    --no-date-headers
fi