ansible-role-certbot/files/nginx_letsencrypt.conf
2018-10-08 19:35:07 +02:00

15 lines
288 B
Text

server {
listen 80 default;
server_name _;
location /.well-known {
alias /var/www/.well-known/;
}
#return 301 https://$host$request_uri;
location / {
if ($scheme = "http") {
rewrite ^ https://$http_host$request_uri? permanent;
}
}
}