This commit is contained in:
AlexBa16
2026-06-01 17:26:19 +02:00
parent 23e985d33a
commit f3d437826e
+24 -16
View File
@@ -29,6 +29,30 @@ http {
server { server {
listen 80; listen 80;
server_name _;
location / {
return 301 https://$host:8443$request_uri;
}
location = /healthz {
default_type text/plain;
return 200 "ok\n";
}
location = /internal/status {
access_log off;
default_type text/plain;
if ($remote_addr != 127.0.0.1) {
return 403;
}
return 200 "internal ok\n";
}
}
server {
listen 443 ssl; listen 443 ssl;
server_name localhost; server_name localhost;
ssl_certificate /etc/nginx/certs/localhost.crt; ssl_certificate /etc/nginx/certs/localhost.crt;
@@ -71,21 +95,5 @@ http {
proxy_set_header X-Forwarded-Proto http; proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
location = /healthz {
default_type text/plain;
return 200 "ok\n";
}
location = /internal/status {
access_log off;
default_type text/plain;
if ($remote_addr != 127.0.0.1) {
return 403;
}
return 200 "internal ok\n";
}
} }
} }