Compare commits
3 Commits
e29bb91853
...
930a4ef124
| Author | SHA1 | Date | |
|---|---|---|---|
| 930a4ef124 | |||
| a321ee6c30 | |||
| 9fbc4e72cb |
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user