Skip to content

Instantly share code, notes, and snippets.

@rootedsoftware
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save rootedsoftware/4917d95cbfddd3e181ad to your computer and use it in GitHub Desktop.

Select an option

Save rootedsoftware/4917d95cbfddd3e181ad to your computer and use it in GitHub Desktop.
giveConf.conf
location /give {
proxy_pass http://trashmountainGive/give;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto http;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
location ~* \.(jpg|jpeg|png|gif|ico)$ {
root /opt/give/app/programs/web.browser;
expires 365d;
}
location ~* \.(pdf)$ {
expires 30d;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment