38 lines
857 B
Nginx Configuration File
38 lines
857 B
Nginx Configuration File
server {
|
|
listen 8080;
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
location /api {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_pass http://backend;
|
|
proxy_max_temp_file_size 102400m;
|
|
}
|
|
|
|
location /oauth2 {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_pass http://backend;
|
|
}
|
|
|
|
location /login/ {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_pass http://backend;
|
|
}
|
|
|
|
}
|
|
|
|
upstream backend {
|
|
server deployment-portal-backend-navi-service:8080;
|
|
}
|
|
|
|
|