Update default.conf

This commit is contained in:
Mikhail 2024-04-17 12:10:31 +00:00
parent e9614bd994
commit fe627e6566

@ -222,6 +222,23 @@ server {
proxy_pass http://hub;
}
location /treasurer/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.8:8085/;
}
location /auth {
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin hub.pena.digital always;