Install nginx:
Cod: Selectaţi tot
pkg install nginxenable nginx:
Cod: Selectaţi tot
sysrc nginx_enable="YES"open auth core CONFIG and add:
Cod: Selectaţi tot
BIND_IP: 127.0.0.1open /usr/local/etc/nginx/nginx.conf and use this configuration:
Cod: Selectaţi tot
load_module '/usr/local/libexec/nginx/ngx_stream_module.so';
worker_processes auto;
events {
worker_connections 5000;
multi_accept on;
}
stream {
upstream auth_servers {
server 127.0.0.1:11002;
server 127.0.0.1:11003;
}
server {
listen 11000;
proxy_pass auth_servers;
}
}
Port 11002 and 11003 are the auth cores (you probably need to adapt them). You can add as many as you want.
Nginx will listen to port 11000, so you need to change the ports in the serverinfo.py accordingly.
check if the configuration is valid:
Cod: Selectaţi tot
nginx -trestart nginx:
Cod: Selectaţi tot
service nginx restart