@ -4,6 +4,8 @@ RUN apk add --no-cache nginx-mod-http-lua openssl
COPY nginx.conf.default /etc/nginx/nginx.conf.default
COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback
COPY http.d /etc/nginx/
COPY extra.d /etc/nginx/
COPY start.sh /start.sh
@ -50,6 +50,7 @@ http {
set_by_lua $webdav 'return os.getenv("WEBDAV")';
set_by_lua $expose_admin 'return os.getenv("EXPOSE_ADMIN")';
include http.d/*.conf;
# Actual logic
location / {
@ -97,3 +98,5 @@ http {
}
include extra.d/*.conf;
@ -36,6 +36,8 @@ http {
add_header Strict-Transport-Security max-age=15768000;
if ($scheme = http) {
return 301 https://$host$request_uri;
@ -45,3 +47,5 @@ http {