Skip to content

Commit

Permalink
Update kube deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed May 3, 2024
1 parent a640d70 commit 5cfc136
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions k8s/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ data:
listen 80;
server_name nextgen-dev.ioos.us;
# example url: http://nlb-nextgen-dev-c6f2020b8ae84ef5.elb.us-east-1.amazonaws.com/assets/index.ce230cd6.css
location /xreds/ {
location /xreds/ {
sub_filter '/assets' '/xreds/assets';
sub_filter '/datasets' '/xreds/datasets';
sub_filter '/docs' '/xreds/docs';
sub_filter '/export' '/xreds/export';
sub_filter_types *;
sub_filter_once off; # ensures it loops through the whole HTML (required)
proxy_pass http://xreds-service:8090/;
proxy_pass http://xreds-service:8090/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
Expand Down Expand Up @@ -69,4 +70,4 @@ spec:
- port: 80
targetPort: 80
selector:
app: nginx
app: nginx

0 comments on commit 5cfc136

Please sign in to comment.