Files
ansible/roles/nginx/templates/default.j2
VC 9c36560f11
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s
🧱: move letsencrypt dir from /srv/http to /var/www
2025-03-09 08:28:33 +01:00

27 lines
391 B
Django/Jinja

server {
listen *:80;
listen [::]:80;
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow ::1;
deny all;
}
}
server {
listen *:80 default_server;
listen [::]:80 default_server;
location /.well-known/acme-challenge {
root {{ nginx_letsencrypt_dir }};
}
location / {
return 301 https://$host$request_uri;
}
}