Redirect http to https

This commit is contained in:
Andrea 2021-09-05 21:51:38 +02:00
parent e336530659
commit b39a678e37
No known key found for this signature in database
GPG Key ID: D6B0878B0B161802

View File

@ -2,6 +2,14 @@ ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
server {
listen 80;
server_name yaaaw.it;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;