This commit is contained in:
Primakov Alexandr Alexandrovich 2021-10-08 15:53:08 +03:00
parent f3799f7b58
commit 6ae770e932
2 changed files with 6 additions and 15 deletions

13
80.conf
View File

@ -24,28 +24,19 @@ server {
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://89.223.94.192:8079/;
proxy_pass http://212.193.59.173:8079/;
}
}
server {
listen 80;
server_name b1.inno-ijl.ru;
# index index.php index.html index.htm index.nginx-debian.html;
location /api/ {
# add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://backend/;
}
location /multystub/ {
# add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://multystub/;
}
@ -54,7 +45,7 @@ server {
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://89.223.94.192:8078/;
proxy_pass http://212.193.59.173:8078/;
}
}

View File

@ -16,15 +16,15 @@ http {
server_names_hash_bucket_size 64;
upstream backend {
server 89.223.94.192:8033;
server 212.193.59.173:8033;
}
upstream multystub {
server 89.223.94.192:8043;
server 212.193.59.173:8043;
}
upstream admin {
server 89.223.94.192:8090;
server 212.193.59.173:8090;
}
server {
@ -37,7 +37,7 @@ http {
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://89.223.94.192:8079/;
proxy_pass http://212.193.59.173:8079/;
}
location /api {