set mattermost to default_server

To avoid the default nginx configuration (which is enabled by
default in the nginx image) we set the mattermost vhosts to the
default_server.
This commit is contained in:
Marco Kundt 2021-04-12 14:11:03 +02:00
parent b12721b6a3
commit ba9164b117

View File

@ -14,8 +14,8 @@ upstream backend {
# vhosts definitions
server {
server_name _;
listen 80;
listen [::]:80;
listen 80 default_server;
listen [::]:80 default_server;
# redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
return 301 https://$host$request_uri;
@ -23,8 +23,8 @@ server {
server {
server_name _;
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
## ssl
ssl_dhparam /dhparams4096.pem;