nginx-config/80.conf

75 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-05-30 19:40:01 +03:00
server {
listen 80;
2021-06-06 16:50:40 +03:00
server_name inno-ijl.ru;
2021-05-30 19:40:01 +03:00
# 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';
2021-06-06 16:50:40 +03:00
proxy_pass http://89.223.94.192:8079/;
2021-05-30 19:40:01 +03:00
}
location /api {
2021-06-08 09:33:49 +03:00
# add_header 'Access-Control-Allow-Origin' '*';
2021-05-30 19:40:01 +03:00
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/;
}
}
server {
listen 80;
server_name 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.ru;
location / {
proxy_pass http://admin/;
}
}
server {
listen 80;
2021-06-06 21:34:04 +03:00
index index.php index.html index.htm index.nginx-debian.html;
server_name khv-sanek.inno-ijl.ru;
root /home/ijl/ijl/apps/xxl;
2021-05-30 19:40:01 +03:00
location / {
2021-06-06 21:34:04 +03:00
try_files $uri $uri/ =404;
index index.html;
2021-05-30 19:40:01 +03:00
}
2021-06-06 21:34:04 +03:00
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;
2021-05-30 19:40:01 +03:00
}