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
15 lines
349 B
Text
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;
|
|
}
|
|
}
|