Created
January 22, 2021 15:22
-
-
Save RizkyRajitha/b2f2fad8500fcd65903fc0a334b4559a to your computer and use it in GitHub Desktop.
load balancing nginx config
This file contains 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 all { | |
server localhost:8081; | |
server localhost:8080; | |
} | |
server{ | |
listen 80; | |
location / { | |
proxy_pass http://all/; | |
} | |
} | |
} | |
events { | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment