forked from mirrors/mattermost-docker
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:
parent
b12721b6a3
commit
ba9164b117
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user