fix(services): 🚑🐛 try fix routing issues

This commit is contained in:
Collin M. Barrett 2020-10-03 15:04:12 -05:00
parent 2608dc44a8
commit 2a85dffce6
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,8 @@
server {
listen 80 default_server;
location /api/directory {
location ^~ /api/directory/ {
rewrite ^/api/directory/(.*)$ /$1 break;
proxy_pass http://directory-api:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@ -12,7 +13,8 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api {
location ^~ /api/ {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://api-docs:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;

View file

@ -9,7 +9,8 @@ server {
add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; img-src 'self' data:; manifest-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';" always;
location /api/directory {
location ^~ /api/directory/ {
rewrite ^/api/directory/(.*)$ /$1 break;
proxy_pass http://directory-api:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@ -20,7 +21,8 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api {
location ^~ /api/ {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://api-docs:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;