ooyala / barkeep

The friendly code review system.
getbarkeep.org
1.42k stars 145 forks source link

Run barkeep in a subdirectory #456

Closed rooftopsparrow closed 11 years ago

rooftopsparrow commented 11 years ago

I have successfully installed barkeep on centOS 6.4 with Apache2 and its running. I can even get to the google auth page.

However I want to serve this page at example.com/review instead of '/'.

How can I do that? I'm lost on where to go.

bo-chen commented 11 years ago

Two ways of doing this are:

  1. Update the ruby code to understand the new path. I would use rack middleware for this. You can try https://github.com/jtrupiano/rack-rewrite which looks popular though I haven't used it before.
  2. Stand up a reverse proxy to forward the path EG. Run Barkeep on a non-80 port. Run nginx on port 80, and have it forward /review to http://localhost:barkeep_port/
bo-chen commented 11 years ago

Ah, looks like that won't work, first report of the issue https://github.com/ooyala/barkeep/issues/433. Closing this as dupe.

rooftopsparrow commented 11 years ago

Yeah the rewrite wasn't working. Thanks for the other suggestion.