Redirection automatique du port 80 vers https

This commit is contained in:
Philippe Caseiro 2017-05-30 14:45:02 +02:00
parent f2a2bd15fd
commit 5284609e4a
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,9 @@
server {
listen 80;
server_name %%gogs_web_name;
return 301 https://$host$request_uri;
}
server {
listen 443;
ssl on;