change order

This commit is contained in:
Primakov Alexandr Alexandrovich 2021-06-06 21:34:04 +03:00
parent b1166f6bf4
commit 433968e7bb
3 changed files with 19 additions and 41 deletions

View File

@ -13,13 +13,6 @@ server {
alias "$appsRoot/uds-middle/dist/"; alias "$appsRoot/uds-middle/dist/";
} }
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 /static/ { location /static/ {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';

48
80.conf
View File

@ -1,27 +1,3 @@
server {
listen 80;
index index.php index.html index.htm index.nginx-debian.html;
server_name khv-sanek.inno-ijl.ru;
root /home/ijl/ijl/apps/xxl;
location / {
try_files $uri $uri/ =404;
index index.html;
}
location ~ \.php$ {
include fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
server {
listen 80;
index index.html;
server_name alinakhaff.inno-ijl.ru;
root /home/ijl/ijl/apps/alinakhaff;
}
server { server {
listen 80; listen 80;
server_name inno-ijl.ru; server_name inno-ijl.ru;
@ -74,12 +50,26 @@ server {
proxy_pass http://admin/; proxy_pass http://admin/;
} }
} }
server {
listen 80;
index index.php index.html index.htm index.nginx-debian.html;
server_name khv-sanek.inno-ijl.ru;
root /home/ijl/ijl/apps/xxl;
location / {
try_files $uri $uri/ =404;
index index.html;
}
location ~ \.php$ {
include fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
server { server {
listen 80; listen 80;
server_name chat.inno-ijl.ru; index index.html;
server_name alinakhaff.inno-ijl.ru;
location / { root /home/ijl/ijl/apps/alinakhaff;
proxy_pass http://chat/;
}
} }

View File

@ -10,7 +10,6 @@ http {
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
sendfile on; sendfile on;
keepalive_timeout 10; keepalive_timeout 10;
server_names_hash_bucket_size 64; server_names_hash_bucket_size 64;
@ -27,10 +26,6 @@ http {
server 89.223.94.192:8090; server 89.223.94.192:8090;
} }
upstream chat {
server 89.223.94.192:8081;
}
server { server {
listen 8080; listen 8080;
# server_name inno-ijl.ru; # server_name inno-ijl.ru;