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 { server {
# listen 80; listen 80 default_server;
# server_name mattermost.example.com; listen [::]:80 default_server;
# return 301 https://$server_name$request_uri; server_name _;
# } return 301 https://$host$request_uri;
}
map $http_x_forwarded_proto $proxy_x_forwarded_proto { map $http_x_forwarded_proto $proxy_x_forwarded_proto {
default $http_x_forwarded_proto; default $http_x_forwarded_proto;