diff --git a/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 b/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 index 45a7b98..5343c11 100644 --- a/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 +++ b/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 @@ -16,6 +16,10 @@ server { {% endif %} {% endfor %} + location = / { + return 404; + } + listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/{{ spring_domain }}/fullchain.pem; # managed by Certbot