multiple configs depending on wether or not we have cert

This commit is contained in:
2025-11-20 21:46:20 +00:00
parent 8c2b99d65f
commit d8aa357414
6 changed files with 78 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
events {
worker_connections 1024; # required, can be minimal
}
http {
server_tokens off;
charset utf-8;
server {
listen 80;
server_name $DOMAIN www.$DOMAIN;
# Only allow Certbot ACME challenge access
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
# All other requests should return 404
location / {
return 404;
}
}
}