infrastructure/ansible/roles/nginx/files/nginx-https-redirect.conf

17 lines
281 B
Plaintext

server {
listen 80;
listen [::]:80;
server_name _;
access_log off;
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root {{ certbot_webroot }};
}
location / {
return 308 https://$host$request_uri;
}
}