Update default.conf
This commit is contained in:
parent
3ea8503b62
commit
8c978d0412
29
default.conf
29
default.conf
@ -3,10 +3,7 @@ server {
|
||||
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
server_name _; # managed by Certbot
|
||||
client_max_body_size 50M;
|
||||
location /shit {
|
||||
proxy_pass http://10.8.0.5;
|
||||
}
|
||||
client_max_body_size 70M;
|
||||
|
||||
location /auth {
|
||||
if ($request_method = OPTIONS) {
|
||||
@ -16,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:59301;
|
||||
}
|
||||
if ($host != admin.pena.digital) {
|
||||
proxy_pass http://pena-auth-service:8080;
|
||||
proxy_pass http://10.6.0.11:59300;
|
||||
}
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
@ -37,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:59300;
|
||||
}
|
||||
|
||||
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:59300/;
|
||||
}
|
||||
|
||||
location /heruvym/ {
|
||||
@ -77,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:59303/;
|
||||
}
|
||||
|
||||
location /customer/ {
|
||||
@ -92,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/ {
|
||||
@ -172,7 +163,7 @@ server {
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Allow-Headers content-type always;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://10.6.0.31:8006/;
|
||||
proxy_pass http://10.6.0.17:8006/;
|
||||
}
|
||||
location /verification1 {
|
||||
if ($request_method = OPTIONS) {
|
||||
@ -229,7 +220,7 @@ server {
|
||||
chunked_transfer_encoding off;
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
proxy_pass http://10.6.0.31:7035/;
|
||||
proxy_pass http://10.6.0.17:7035/;
|
||||
}
|
||||
|
||||
location / {
|
||||
@ -259,7 +250,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://pena-social-auth-service:8000;
|
||||
proxy_pass http://10.6.0.11:59344;
|
||||
}
|
||||
|
||||
if ($host = newerait.pena.digital) {
|
||||
|
Loading…
Reference in New Issue
Block a user