dream-setup/nginx/server.conf

21 lines
454 B
Text
Raw Normal View History

2025-01-07 16:08:51 +01:00
server {
listen 443 ssl;
listen 443 quic;
listen [::]:443 ssl;
listen [::]:443 quic;
2025-01-07 16:09:40 +01:00
server_name <domain>;
ssl_certificate /etc/ssl/<domain>/fullchain.pem;
ssl_certificate_key /etc/ssl/<domain>/key.pem;
2025-01-07 16:08:51 +01:00
location / {
proxy_pass http://<replace>;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location /.well-known/acme-challenge {
2025-01-07 16:09:40 +01:00
root /var/www/html/<domain>;
2025-01-07 16:08:51 +01:00
}
}