This commit is contained in:
22
frontend/nginx.conf
Executable file
22
frontend/nginx.conf
Executable file
@@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://backend-service.web-portal.svc.cluster.local:8000/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_connect_timeout 10s;
|
||||
}
|
||||
|
||||
location /health {
|
||||
proxy_pass http://backend-service.web-portal.svc.cluster.local:8000/health;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user