1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00

adding nginx modularity

This commit is contained in:
Dmytro Makovey 2017-09-21 23:56:15 -07:00
parent f86391f839
commit b3d961a3dc
5 changed files with 9 additions and 0 deletions

View File

@ -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

0
nginx/extra.d/.keep Normal file
View File

0
nginx/http.d/.keep Normal file
View File

View File

@ -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;

View File

@ -36,6 +36,8 @@ http {
add_header Strict-Transport-Security max-age=15768000;
include http.d/*.conf;
if ($scheme = http) {
return 301 https://$host$request_uri;
}
@ -45,3 +47,5 @@ http {
}
}
}
include extra.d/*.conf;