Compare commits

...

3 Commits

Author SHA1 Message Date
AlexBa16 930a4ef124 C5 2026-06-01 16:14:06 +02:00
AlexBa16 a321ee6c30 C4 2026-06-01 16:07:37 +02:00
AlexBa16 9fbc4e72cb C3 2026-06-01 16:02:12 +02:00
+22
View File
@@ -24,6 +24,13 @@ http {
listen 80;
server_name _;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
@@ -36,6 +43,10 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /demo/a {
proxy_pass http://backend_a/;
}
location /service/b {
proxy_pass http://backend_b/;
proxy_set_header Host $host;
@@ -54,5 +65,16 @@ http {
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";
}
}
}