Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set resolver to dockers internal dns for first 30 seconds #1002

Merged
merged 4 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ PYTHONUNBUFFERED=0
COMPOSE_CONVERT_WINDOWS_PATHS=1
DB_PATH=/path/to/db_data
V_HOST=neuroscout.org
V_HOSTS=neuroscout.org,neuroscout.psy.utexas.edu
5 changes: 2 additions & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ http {
return 301 /api/swagger/;
}

location /api/swagger/ {
set $swagger http://swagger-ui:8080/;
proxy_pass $swagger;
location ^~ /api/swagger/ {
proxy_pass http://swagger-ui:8080/;
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