Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created March 19, 2015 09:14
Show Gist options
  • Save Epigene/bee25efc43cdcc20ccb0 to your computer and use it in GitHub Desktop.
Save Epigene/bee25efc43cdcc20ccb0 to your computer and use it in GitHub Desktop.
Simple IP-based nginx config for Puma
upstream puma {
server unix:/tmp/puma.socket fail_timeout=1;
}
server {
listen 80;
server_name <IP>;
return 307 http://www.google.lv$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment