Skip to content

Instantly share code, notes, and snippets.

@cgag
Created December 18, 2013 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cgag/8031034 to your computer and use it in GitHub Desktop.
Save cgag/8031034 to your computer and use it in GitHub Desktop.
nginx and compojure/jetty
102
103 server {
104 listen 80;
105 server_name bookmarking.curtis.io;
106
107 location / {
108 expires 24h;
109 proxy_pass http://localhost:3000/;
110 sendfile on;
111 proxy_redirect off;
112 proxy_set_header Host $host;
113 proxy_set_header X-Real-IP $remote_addr;
114 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
115 }
116 }
117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment