Created
November 4, 2020 11:39
-
-
Save h1code2/0e553cfcfeca193579e37d9b05973b17 to your computer and use it in GitHub Desktop.
Nginx简单配置负载均衡 #nginx #负载均衡
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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