diff --git a/k8s/nginx-deployment.yaml b/k8s/nginx-deployment.yaml index 6e30514..df5331b 100644 --- a/k8s/nginx-deployment.yaml +++ b/k8s/nginx-deployment.yaml @@ -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; @@ -69,4 +70,4 @@ spec: - port: 80 targetPort: 80 selector: - app: nginx \ No newline at end of file + app: nginx