Update admin.conf
This commit is contained in:
parent
d37c8153ac
commit
e23e5a2080
30
admin.conf
30
admin.conf
@ -130,36 +130,6 @@ server {
|
|||||||
proxy_pass http://10.8.0.6:8070/;
|
proxy_pass http://10.8.0.6:8070/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /codeword/ {
|
|
||||||
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.8.0.6:59664/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /codeword/v1.0.0 {
|
|
||||||
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.8.0.6:29100/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /answer/ {
|
location /answer/ {
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
|
Loading…
Reference in New Issue
Block a user