diff --git a/docker/Caddyfile.tpl b/docker/Caddyfile.tpl index c89e284..46dd478 100644 --- a/docker/Caddyfile.tpl +++ b/docker/Caddyfile.tpl @@ -1,4 +1,4 @@ -http://%%DOMAIN%% { +:80 { root * /var/www/html file_server diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 591e88e..f1c1c28 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,7 +1,6 @@ #!/bin/sh if [ ! -e "/etc/Caddyfile" ]; then - sed -i "s#%%DOMAIN%%#${DOMAIN:-localhost}#g" /etc/Caddyfile.tpl sed -i "s#%%LOGLEVEL%%#${LOGLEVEL:-INFO}#g" /etc/Caddyfile.tpl sed -i "s#%%LOGFORMAT%%#${LOGFORMAT:-json}#g" /etc/Caddyfile.tpl mv /etc/Caddyfile.tpl /etc/Caddyfile @@ -9,7 +8,7 @@ else rm -f /etc/Caddyfile.tpl fi -echo "Starting UI: http://${DOMAIN:-localhost}" -echo "Logs output: ${LOGLEVEL:-INFO} (${LOGFORMAT:-json})" +echo "Starting UI on port 80" +echo "Logs output: ${LOGLEVEL:-INFO} (${LOGFORMAT:-json})" exec caddy run --config /etc/Caddyfile