Skip to content

Instantly share code, notes, and snippets.

@h1code2
Created November 4, 2020 11:39
Show Gist options
  • Save h1code2/0e553cfcfeca193579e37d9b05973b17 to your computer and use it in GitHub Desktop.
Save h1code2/0e553cfcfeca193579e37d9b05973b17 to your computer and use it in GitHub Desktop.
Nginx简单配置负载均衡 #nginx #负载均衡
http {
upstream tiktok {
server 192.168.90.147:5000;
# server 192.90.156:5000;
}
server {
listen 8080;
# proxy_send_timeout 300s;
# proxy_read_timeout 300s;
location / {
proxy_pass http://tiktok;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment