Skip to content

Instantly share code, notes, and snippets.

@moqada
Created January 16, 2013 15:23
Show Gist options
  • Select an option

  • Save moqada/4547917 to your computer and use it in GitHub Desktop.

Select an option

Save moqada/4547917 to your computer and use it in GitHub Desktop.

Revisions

  1. moqada created this gist Jan 16, 2013.
    19 changes: 19 additions & 0 deletions gollum.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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;
    }
    }