This commit is contained in:
Maieul BOYER 2025-06-13 23:38:13 +02:00
parent 2f991d9743
commit 985c636360
No known key found for this signature in database
36 changed files with 6507 additions and 2 deletions

View file

@ -6,7 +6,7 @@ server {
server_name $NGINX_DOMAIN;
if ($host = example.com) {
if ($host = $NGINX_DOMAIN) {
return 301 https://$host$request_uri;
}
return 404;
@ -21,6 +21,7 @@ server {
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
ssl_protocols TLSv1.3;
proxy_set_header X-Forwarded true;
include conf.d/locations/*.conf;
}