nginx-config/nginx.conf

68 lines
2.0 KiB
Nginx Configuration File
Raw Normal View History

2021-05-27 09:26:09 +03:00
2020-12-14 23:34:00 +03:00
# xworker_processes 1;
2020-02-08 13:39:34 +03:00
events {
worker_connections 1024;
}
http {
resolver 127.0.0.1;
include mime.types;
default_type application/octet-stream;
2021-06-08 11:06:22 +03:00
client_max_body_size 20M;
2021-05-30 19:40:01 +03:00
2020-02-08 13:39:34 +03:00
sendfile on;
keepalive_timeout 10;
2021-05-27 09:26:09 +03:00
server_names_hash_bucket_size 64;
2020-02-08 13:39:34 +03:00
2020-12-14 23:34:00 +03:00
upstream backend {
2021-06-06 16:50:40 +03:00
server 89.223.94.192:8033;
2020-12-14 23:34:00 +03:00
}
2021-01-19 18:57:38 +03:00
upstream multystub {
2021-06-06 16:50:40 +03:00
server 89.223.94.192:8043;
2021-01-19 18:57:38 +03:00
}
2020-12-14 23:34:00 +03:00
2021-05-27 09:26:09 +03:00
upstream admin {
2021-06-06 16:50:40 +03:00
server 89.223.94.192:8090;
2021-05-27 09:26:09 +03:00
}
2020-12-14 23:34:00 +03:00
server {
2021-05-30 19:40:01 +03:00
listen 8080;
2021-06-06 16:50:40 +03:00
# server_name inno-ijl.ru;
2021-05-27 09:26:09 +03:00
# index index.php index.html index.htm index.nginx-debian.html;
2021-05-30 19:40:01 +03:00
2021-05-27 09:26:09 +03:00
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-27 09:26:09 +03:00
}
location /api {
2020-02-08 13:39:34 +03:00
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-05-30 19:40:01 +03:00
proxy_pass http://backend;
2020-02-08 13:39:34 +03:00
}
2021-05-27 09:26:09 +03:00
2021-05-30 19:40:01 +03:00
location /multystub/ {
#add_header 'Access-Control-Allow-Origin' '*';
#add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
2021-05-27 09:26:09 +03:00
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-05-30 19:40:01 +03:00
proxy_pass http://multystub/;
2021-05-27 09:26:09 +03:00
}
}
2021-06-06 16:50:40 +03:00
# include ./83-php.conf;
2021-05-30 19:40:01 +03:00
include 3002-apps-static.conf;
include 80.conf;
2020-02-08 13:39:34 +03:00
}
2021-05-27 09:26:09 +03:00