Skip to content

Instantly share code, notes, and snippets.

@joshdk
Created April 5, 2013 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdk/5315941 to your computer and use it in GitHub Desktop.
Save joshdk/5315941 to your computer and use it in GitHub Desktop.
Nginx configuration file for a Briefcase instance
listen 80;
server_name localhost
access_log /var/log/nginx/search.access.log;
error_log /var/log/nginx/search.error.log;
location /static/accounts/ {
alias /etc/webapps/briefcase/briefcase/core/accounts/static/accounts/;
expires 30d;
}
location /static/spreadsheet/ {
alias /etc/webapps/briefcase/briefcase/apps/spreadsheet/static/spreadsheet/;
expires 30d;
}
location /static/ {
alias /etc/webapps/briefcase/briefcase/core/static/;
expires 30d;
}
location / {
include fastcgi_params;
fastcgi_pass 127.0.0.1:8080;
fastcgi_split_path_info ^()(.*)$;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment