mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-07 13:08:22 +02:00
adding nginx modularity
This commit is contained in:
parent
f86391f839
commit
b3d961a3dc
@ -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.default /etc/nginx/nginx.conf.default
|
||||||
COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback
|
COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback
|
||||||
|
COPY http.d /etc/nginx/
|
||||||
|
COPY extra.d /etc/nginx/
|
||||||
|
|
||||||
COPY start.sh /start.sh
|
COPY start.sh /start.sh
|
||||||
|
|
||||||
|
0
nginx/extra.d/.keep
Normal file
0
nginx/extra.d/.keep
Normal file
0
nginx/http.d/.keep
Normal file
0
nginx/http.d/.keep
Normal file
@ -50,6 +50,7 @@ http {
|
|||||||
set_by_lua $webdav 'return os.getenv("WEBDAV")';
|
set_by_lua $webdav 'return os.getenv("WEBDAV")';
|
||||||
set_by_lua $expose_admin 'return os.getenv("EXPOSE_ADMIN")';
|
set_by_lua $expose_admin 'return os.getenv("EXPOSE_ADMIN")';
|
||||||
|
|
||||||
|
include http.d/*.conf;
|
||||||
# Actual logic
|
# Actual logic
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@ -97,3 +98,5 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include extra.d/*.conf;
|
||||||
|
@ -36,6 +36,8 @@ http {
|
|||||||
|
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
|
|
||||||
|
include http.d/*.conf;
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
@ -45,3 +47,5 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include extra.d/*.conf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user