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

17 lines
281 B
Plaintext
Raw Normal View History

server {
listen 80;
2023-12-31 22:49:11 +00:00
listen [::]:80;
server_name _;
access_log off;
2023-12-21 16:35:20 +00:00
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root {{ certbot_webroot }};
}
location / {
return 308 https://$host$request_uri;
}
}