config update
This commit is contained in:
parent
71caab4e0f
commit
5d1bdda693
108
nginx.conf
108
nginx.conf
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
# xworker_processes 1;
|
# xworker_processes 1;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
@ -11,6 +12,7 @@ http {
|
|||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 10;
|
keepalive_timeout 10;
|
||||||
|
server_names_hash_bucket_size 64;
|
||||||
|
|
||||||
upstream backend {
|
upstream backend {
|
||||||
server 89.223.91.151:8033;
|
server 89.223.91.151:8033;
|
||||||
@ -20,6 +22,14 @@ http {
|
|||||||
server 89.223.91.151:8043;
|
server 89.223.91.151:8043;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream admin {
|
||||||
|
server 89.223.91.151:8090;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream chat {
|
||||||
|
server 89.223.91.151:8081;
|
||||||
|
}
|
||||||
|
|
||||||
# server {
|
# server {
|
||||||
# listen 81;
|
# listen 81;
|
||||||
# server_name localhost;
|
# server_name localhost;
|
||||||
@ -29,15 +39,41 @@ http {
|
|||||||
# index index.html;
|
# index index.html;
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
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 82;
|
listen 82;
|
||||||
index index.php index.html index.htm index.nginx-debian.html;
|
#index index.php index.html index.htm index.nginx-debian.html;
|
||||||
|
# server_name inno-ijl.online inno-ijl.ru;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
root /home/ijl/ijl/apps/stc28;
|
#root /home/ijl/ijl/apps/other;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
root /home/ijl/ijl/apps/other;
|
||||||
|
index index.html;
|
||||||
|
#try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
@ -52,6 +88,7 @@ http {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
|
#server_name inno-ijl.online 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 / {
|
location / {
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
@ -70,7 +107,35 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /multystub/ {
|
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/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name inno-ijl.online inno-ijl.ru;
|
||||||
|
# index index.php index.html index.htm index.nginx-debian.html;
|
||||||
|
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.91.151:8079/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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-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-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';
|
||||||
@ -129,4 +194,41 @@ http {
|
|||||||
root html;
|
root html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name static.inno-ijl.online static.inno-ijl.ru;
|
||||||
|
set $appsRoot "/home/ijl/ijl/apps";
|
||||||
|
root $appsRoot;
|
||||||
|
|
||||||
|
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';
|
||||||
|
alias "$appsRoot/";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name admin.inno-ijl.online admin.inno-ijl.ru;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://admin/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name chat.inno-ijl.ru;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://chat/;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user