Merge pull request #157 from jminardi/patch-1

Add 301 redirect from port 80 to port 443
This commit is contained in:
Kyâne Pichou 2017-07-19 21:00:30 +02:00 committed by GitHub
commit 6e2600cad1

View File

@ -1,8 +1,9 @@
# server {
# listen 80;
# server_name mattermost.example.com;
# return 301 https://$server_name$request_uri;
# }
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
default $http_x_forwarded_proto;