28 lines
616 B
Nginx Configuration File
28 lines
616 B
Nginx Configuration File
worker_processes auto;
|
|
worker_rlimit_nofile 500000;
|
|
|
|
events {
|
|
use epoll;
|
|
worker_connections 1024;
|
|
}
|
|
http {
|
|
access_log off;
|
|
error_log /dev/null emerg;
|
|
|
|
upstream backend_servers {
|
|
server zig1:8080;
|
|
server zig2:8080;
|
|
keepalive 200;
|
|
}
|
|
server {
|
|
listen 9999;
|
|
location / {
|
|
proxy_buffering off;
|
|
proxy_set_header Connection "";
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Keep-Alive "";
|
|
proxy_set_header Proxy-Connection "keep-alive";
|
|
proxy_pass http://backend_servers;
|
|
}
|
|
}
|
|
}
|