Дп
Size: a a a
Дп
BK
Дп
BK
PK
PK
PK
PK
M

HH
A
A
A
TM
A
Дп
server {
listen 80;
server_name "";
location ~ ^/api {
if ($request_method = OPTIONS) {
return 204;
}
proxy_pass http://my-secret-api:8080;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header Origin $http_origin;
proxy_cache_bypass $http_upgrade;
}
root /usr/html;
index index.html;
location = /health {
default_type application/json;
return 200 '{"status":"OK","status_code":200}';
}
location / {
try_files $uri $uri/ /index.html;
}
location /favicon.ico {
log_not_found off;
}
}A
IT
Y