Last active
December 19, 2015 23:59
-
-
Save ricn/6038942 to your computer and use it in GitHub Desktop.
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 5; | |
| events {} | |
| http { | |
| upstream database { | |
| postgres_server 127.0.0.1 dbname=test user=ricn password=mypass; | |
| } | |
| server { | |
| listen 8080; | |
| server_name localhost; | |
| location / { | |
| echo -n "Hello World"; | |
| } | |
| location /pg { | |
| postgres_pass database; | |
| rds_json on; | |
| postgres_query HEAD GET "SELECT * FROM test"; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment