This commit is contained in:
Primakov Alexandr Alexandrovich 2021-08-26 08:40:12 +03:00
parent 91922786e2
commit f3799f7b58

34
80.conf
View File

@ -3,12 +3,12 @@ server {
server_name inno-ijl.ru; server_name inno-ijl.ru;
# index index.php index.html index.htm index.nginx-debian.html; # index index.php index.html index.htm index.nginx-debian.html;
location /api { location /api/ {
# add_header 'Access-Control-Allow-Origin' '*'; # add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # 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-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'; # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://backend; proxy_pass http://backend/;
} }
location /multystub/ { location /multystub/ {
@ -28,6 +28,36 @@ server {
} }
} }
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/;
}
location / {
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://89.223.94.192:8078/;
}
}
server { server {
listen 80; listen 80;
server_name static.inno-ijl.ru; server_name static.inno-ijl.ru;