-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for perseus web - to override port
Added atlasdb to solr vocab testing
- Loading branch information
Showing
3 changed files
with
166 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name _; | ||
|
||
|
||
location / { | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:4200; | ||
# proxy_pass http://host.docker.internal:4200; | ||
|
||
} | ||
|
||
location /backend { | ||
auth_request /user/api/is_token_valid_internal; | ||
auth_request_set $username $upstream_http_Username; | ||
proxy_set_header Username $username; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:5000; | ||
} | ||
|
||
location /user { | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:5001; | ||
} | ||
|
||
location /user/api/is_token_valid_internal { | ||
if ($request_uri ~ .*\/api\/info$) { | ||
return 200; | ||
} | ||
if ($request_method = 'OPTIONS') { | ||
return 200; | ||
} | ||
internal; | ||
proxy_pass_request_body off; | ||
proxy_set_header Content-Length ""; | ||
proxy_set_header X-Original-URI $request_uri; | ||
proxy_pass http://172.17.0.1:5001; | ||
|
||
proxy_cache token_responses; | ||
proxy_cache_key $http_Authorization; | ||
proxy_cache_lock on; | ||
proxy_cache_valid 200 300s; | ||
proxy_cache_use_stale error timeout; | ||
} | ||
|
||
location /white-rabbit { | ||
auth_request /user/api/is_token_valid_internal; | ||
auth_request_set $username $upstream_http_Username; | ||
proxy_set_header Username $username; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:8000; | ||
} | ||
|
||
location /cdm-builder { | ||
auth_request /user/api/is_token_valid_internal; | ||
auth_request_set $username $upstream_http_Username; | ||
proxy_set_header Username $username; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:9000; | ||
} | ||
|
||
location /data-quality-dashboard/api { | ||
auth_request /user/api/is_token_valid_internal; | ||
auth_request_set $username $upstream_http_Username; | ||
proxy_set_header Username $username; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:8001; | ||
} | ||
|
||
location /data-quality-dashboard { | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:8001; | ||
} | ||
|
||
location /athena { | ||
auth_request /user/api/is_token_valid_internal; | ||
auth_request_set $username $upstream_http_Username; | ||
proxy_set_header Username $username; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:5002; | ||
} | ||
|
||
location /solr { | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:8983; | ||
#include /etc/nginx/whitelist.conf; | ||
} | ||
|
||
location /usagi { | ||
auth_request /user/api/is_token_valid_internal; | ||
auth_request_set $username $upstream_http_Username; | ||
proxy_set_header Username $username; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:5003; | ||
} | ||
|
||
location /swagger { | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_pass http://172.17.0.1:8080; | ||
} | ||
} |