Skip to content

Instantly share code, notes, and snippets.

@wgzhao
Forked from moqada/gollum.conf
Created August 16, 2013 07:48
Show Gist options
  • Save wgzhao/6248081 to your computer and use it in GitHub Desktop.
Save wgzhao/6248081 to your computer and use it in GitHub Desktop.
server {
listen 8880;
server_name gollum;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:9090;
access_log /var/log/nginx/gollum.access.log;
error_log /var/log/nginx/gollum.error.log;
}
location ~/(javascript|css|livepreview)/ {
root /home/gollum/gollum/lib/gollum/frontend/public/gollum;
access_log /var/log/nginx/gollum.static.access.log;
error_log /var/log/nginx/gollum.static.error.log;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment