Update default.conf
This commit is contained in:
parent
6dc198db2b
commit
c9254c2eca
17
default.conf
17
default.conf
@ -1,4 +1,4 @@
|
|||||||
server {
|
/server {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
||||||
index index.html index.htm index.nginx-debian.html;
|
index index.html index.htm index.nginx-debian.html;
|
||||||
@ -185,6 +185,21 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
|||||||
proxy_pass http://10.8.0.6:59664/;
|
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,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.6:19100/;
|
||||||
|
}
|
||||||
|
|
||||||
location /treasurer/ {
|
location /treasurer/ {
|
||||||
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