-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
Update to this config map
# ROS API - recommendations endpoint (more specific path, matched first)
location /api/cost-management/v1/recommendations/openshift {
proxy_pass http://cost-onprem-ros-api:8000;
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_http_version 1.1;
proxy_set_header Connection "";
}
# Koku API - all other cost-management endpoints
location /api/cost-management/v1 {
proxy_pass http://cost-onprem-koku-api:8000;
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_http_version 1.1;
proxy_set_header Connection "";
}
location / {
root /opt/app-root/src/onprem;
try_files $uri $uri/ /index.html;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "strict-origin-when-cross-origin";
}
location /costManagement/ {
alias /opt/app-root/src/costManagement/;
try_files $uri $uri/ /index.html;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "strict-origin-when-cross-origin";
}
location /costManagementRos/ {
alias /opt/app-root/src/costManagementRos/;
try_files $uri $uri/ /index.html;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "strict-origin-when-cross-origin";
}
location = /logout {
absolute_redirect off;
return 302 /oauth2/sign_out?rd=/oauth2/start;
}