Skip to content

Commit

Permalink
Merge pull request #3532 from kubecost/nick/eng-2392
Browse files Browse the repository at this point in the history
add api config endpoints to nginx config
  • Loading branch information
nickcurie authored Jul 8, 2024
2 parents 43eee38 + 70c4ed9 commit 667910d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,22 @@ data:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/getApiConfig {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/getApiConfig;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/setApiConfig {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/setApiConfig;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/enablements {
proxy_read_timeout 300;
proxy_pass http://aggregator/enablements;
Expand Down

0 comments on commit 667910d

Please sign in to comment.