dirty fix to disable default server when MULTISITE=yes

This commit is contained in:
bunkerity
2020-12-05 16:07:40 +01:00
parent 36cbb927c0
commit f3bf04e390
5 changed files with 50 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
listen 0.0.0.0:%HTTPS_PORT% default_server ssl %HTTP2%;
ssl_certificate /etc/nginx/default-cert.pem;
ssl_certificate_key /etc/nginx/default-key.pem;
ssl_protocols %HTTPS_PROTOCOLS%;
ssl_prefer_server_ciphers off;
ssl_session_tickets off;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
%SSL_DHPARAM%
%SSL_CIPHERS%

View File

@@ -0,0 +1,6 @@
server {
%LISTEN_HTTP%
%USE_HTTPS%
server_name _;
return 444;
}

View File

@@ -100,6 +100,9 @@ http {
# custom http confs
include /http-confs/*.conf;
# disable default server when MULTISITE=yes
%MULTISITE_DISABLE_DEFAULT_SERVER%
# server config(s)
%INCLUDE_SERVER%
}