Skip to content

Instantly share code, notes, and snippets.

@ricn
Last active December 19, 2015 23:59
Show Gist options
  • Select an option

  • Save ricn/6038942 to your computer and use it in GitHub Desktop.

Select an option

Save ricn/6038942 to your computer and use it in GitHub Desktop.
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