19 lines
402 B
Nginx Configuration File
19 lines
402 B
Nginx Configuration File
server {
|
|
listen 8081;
|
|
root /app;
|
|
index index.html;
|
|
|
|
location /healthz { access_log off; return 200 'ok'; }
|
|
|
|
location /api {
|
|
proxy_http_version 1.1;
|
|
proxy_pass_request_headers on;
|
|
proxy_hide_header Access-Control-Allow-Origin;
|
|
proxy_buffering off;
|
|
proxy_pass http://backend:8090;
|
|
}
|
|
|
|
location / { try_files $uri $uri/ /index.html; }
|
|
}
|
|
|