Last active
May 3, 2020 05:53
-
-
Save fcicq/d418345e3695e12d5737ad3f6fe4c7c7 to your computer and use it in GitHub Desktop.
minimal nginx stream config, replace TARGET / LISTEN first. nginx -c PATH/to/conf
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
worker_processes 1; master_process off; daemon off; error_log /dev/null; pid /dev/null; | |
load_module /usr/lib/nginx/modules/ngx_stream_module.so; | |
events {} | |
stream { upstream u { server TARGET max_fails=0; server TARGET max_fails=0; } server { listen LISTEN; proxy_pass u; }} |
Author
fcicq
commented
May 3, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment