nginx-config/nginx.conf

91 lines
2.4 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 {
2022-02-09 22:47:11 +03:00
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
2020-02-08 13:39:34 +03:00
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-11-09 21:17:29 +03:00
server 212.193.59.173:8033;
2020-12-14 23:34:00 +03:00
}
2022-02-09 22:47:11 +03:00
upstream websocket {
server 212.193.59.173:8033;
keepalive 1000;
}
2021-01-19 18:57:38 +03:00
upstream multystub {
2021-11-09 21:17:29 +03:00
server 212.193.59.173:8043;
2021-01-19 18:57:38 +03:00
}
2020-12-14 23:34:00 +03:00
2023-08-01 13:32:55 +03:00
upstream ms {
server 212.193.59.173:8044;
}
2022-04-16 23:14:28 +03:00
upstream red_coder {
server 212.193.59.173:8045;
}
2021-05-27 09:26:09 +03:00
upstream admin {
2021-11-09 21:17:29 +03:00
server 212.193.59.173:8090;
2021-05-27 09:26:09 +03:00
}
2022-05-22 19:43:28 +03:00
upstream cms {
2022-05-22 19:46:45 +03:00
server 212.193.55.249:8045;
2022-05-22 19:43:28 +03:00
}
2021-10-31 15:47:20 +03:00
# server {
# listen 8080;
2022-01-10 22:35:33 +03:00
# # server_name inno-js.ru;
2021-10-31 15:47:20 +03:00
# # index index.php index.html index.htm index.nginx-debian.html;
2021-05-30 19:40:01 +03:00
2021-10-31 15:47:20 +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-11-09 21:17:29 +03:00
# proxy_pass http://212.193.59.173:8079/;
2021-10-31 15:47:20 +03:00
# }
2021-05-27 09:26:09 +03:00
2021-10-31 15:47:20 +03:00
# 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;
# }
2021-05-27 09:26:09 +03:00
2021-10-31 15:47:20 +03:00
# 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/;
# }
# }
2021-05-27 09:26:09 +03:00
2021-06-06 16:50:40 +03:00
# include ./83-php.conf;
2021-10-31 15:47:20 +03:00
# include 3002-apps-static.conf;
2021-05-30 19:40:01 +03:00
include 80.conf;
2022-02-17 20:23:29 +03:00
include 443.conf;
2020-02-08 13:39:34 +03:00
}
2021-05-27 09:26:09 +03:00