使用 Nginx
负载 前后端:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| server { listen 10001; server_name 0.0.0.0; location /seed-auth { proxy_pass http://authServer; # session 地址 proxy_cookie_path /seed-auth /; } location / { root /home/maxzhao/seed-auth/frontend/; index index.html; } } upstream authServer { server 192.168.14.118:20001; server 192.168.14.117:20001; }
|
本文地址: https://github.com/maxzhao-it/blog/post/793975d1/