Created
December 2, 2021 17:53
-
-
Save mmmcorpsvit/794c623c065adea475eaa6abeafa917d to your computer and use it in GitHub Desktop.
Nginx Postgres Proxy
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
sudo echo ' | |
stream { | |
upstream postgres { | |
server localhost:5432; | |
} | |
server { | |
listen 5432 so_keepalive=on; | |
proxy_pass 999.999.999.999:5432; | |
} | |
}' >> /etc/nginx/nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment