bilhej/docker/bilhej.nginx.http.conf
Joakim Mörling 45b2449b14 Add phased nginx setup for bilhej.se TLS on srvr.nu.
First-time host nginx setup needs HTTP-only vhost before certbot can
issue certs; the full bilhej.nginx.conf 443 block fails nginx -t until
those files exist.

- Add docker/bilhej.nginx.http.conf for ACME phase
- Reorder README one-time setup: HTTP vhost, certbot, then full config
2026-05-21 17:06:21 +02:00

15 lines
349 B
Text

# Phase 1: HTTP only — use before Let's Encrypt certs exist.
# After certbot, replace with bilhej.nginx.conf (includes HTTPS).
server {
listen 80;
server_name bilhej.se www.bilhej.se;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}