Skip to content

Commit

Permalink
port update for local nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Jun 7, 2023
1 parent 85cd66b commit 5f56006
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions nginx_gdit_aws_nonssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ server {
add_header X-XSS-Protection "1; mode=block";
add_header X-Frame-Options "SAMEORIGIN";

add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Headers "*";

add_header Access-Control-Expose-Headers "Content-Disposition";

# Removes Nginx version from headers:
server_tokens off;

Expand Down Expand Up @@ -128,16 +133,16 @@ server {
}

# Cyan-waterbody API
#location /waterbody {
# proxy_pass https://cyan.epa.gov/waterbody;
#}
# location /waterbody {
# proxy_pass https://ceamdev.ceeopdev.net/waterbody;
# }
# Cyan-waterbody API (uwsgi)
location /waterbody {
try_files $uri @wb_flask;
}
location @wb_flask {
include uwsgi_params;
uwsgi_pass host.docker.internal:8085;
uwsgi_pass host.docker.internal:8084;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 5f56006

Please sign in to comment.