Redirection automatique du port 80 vers https
This commit is contained in:
parent
f2a2bd15fd
commit
5284609e4a
|
@ -1,3 +1,9 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name %%gogs_web_name;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
ssl on;
|
ssl on;
|
||||||
|
|
Loading…
Reference in New Issue