Update default.conf
This commit is contained in:
parent
5d37a06e4d
commit
843e95e526
18
default.conf
18
default.conf
@ -13,10 +13,10 @@ server {
|
||||
return 200;
|
||||
}
|
||||
if ($host = admin.pena.digital) {
|
||||
proxy_pass http://admin-auth-service:8080;
|
||||
proxy_pass http://10.6.0.11:8080;
|
||||
}
|
||||
if ($host != admin.pena.digital) {
|
||||
proxy_pass http://pena-auth-service:8080;
|
||||
proxy_pass http://10.6.0.11:8080;
|
||||
}
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
@ -34,17 +34,11 @@ server {
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Allow-Headers content-type,authorization always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_pass http://pena-auth-service:8080;
|
||||
proxy_pass http://10.6.0.11:8080;
|
||||
}
|
||||
|
||||
location /swagger/ {
|
||||
proxy_pass http://pena-auth-service:8080/;
|
||||
}
|
||||
location /cookie {
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
add_header Set-Cookie "test=sameshit;SameSite=None;HttpOnly;Secure;";
|
||||
return 200;
|
||||
proxy_pass http://10.6.0.11:8080/;
|
||||
}
|
||||
|
||||
location /heruvym/ {
|
||||
@ -74,7 +68,7 @@ server {
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Allow-Headers content-type,authorization always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_pass http://hub-admin-backend-service:8005/;
|
||||
proxy_pass http://10.6.0.11:8005/;
|
||||
}
|
||||
|
||||
location /customer/ {
|
||||
@ -89,7 +83,7 @@ server {
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Allow-Headers content-type,authorization always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_pass http://customer-service-staging:8065/;
|
||||
proxy_pass http://10.6.0.11:8065/;
|
||||
}
|
||||
|
||||
location /answer/ {
|
||||
|
Loading…
Reference in New Issue
Block a user