Skip to content

Commit

Permalink
Added 7777 for airflow to talk to ingest-api
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhou committed Jul 2, 2020
1 parent 46b56ae commit 9b4e5d5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker/ingest-api-prod/nginx/conf.d/ingest-api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,29 @@ server {
uwsgi_pass uwsgi://localhost:5000;
}
}

# To be used by airflow on the same machine
server {
listen 7777;

server_name hivevm193.psc.edu;
root /usr/share/nginx/html;

# We need this logging for inspecting auth requests from other internal services
# Logging to the mounted volume for outside container access
access_log /usr/src/app/log/nginx_access_ingest-api-4-airflow.log;
error_log /usr/src/app/log/nginx_error_ingest-api-4-airflow.log warn;

location = /favicon.ico {
alias /usr/share/nginx/html/favicon.ico;
}

# Pass reqeusts to the uWSGI server using the "uwsgi" protocol on port 5000
location / {
include uwsgi_params;
uwsgi_read_timeout 300;
# Use "localhost" becuase the uWSGI server is also running on the same container
uwsgi_pass uwsgi://localhost:5000;
}

}

0 comments on commit 9b4e5d5

Please sign in to comment.