Update default.conf
This commit is contained in:
parent
ee7e960e49
commit
8504e4a778
20
default.conf
20
default.conf
@ -104,12 +104,22 @@ 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;
|
||||
if ($host = squiz.pena.digital) {
|
||||
proxy_pass http://10.6.0.23:1488/;
|
||||
}
|
||||
if ($host = hbpn.link) {
|
||||
proxy_pass http://10.6.0.23:1490/;
|
||||
proxy_pass http://10.6.0.23:1488/;
|
||||
}
|
||||
|
||||
location /answer {
|
||||
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 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 always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_pass http://10.6.0.23:1490/;
|
||||
}
|
||||
|
||||
location /squizstorer/ {
|
||||
|
Loading…
Reference in New Issue
Block a user