{"action":"created","issue":{"url":"https://api.github.com/repos/gollum/gollum/issues/938","labels_url":"https://api.github.com/repos/gollum/gollum/issues/938/labels{/name}","comments_url":"https://api.github.com/repos/gollum/gollum/issues/938/comments","events_url":"https://api.github.com/repos/gollum/gollum/issues/938/events","html_url":"https://github.com/gollum/gollum/issues/938","id":53991827,"number":938,"title":"Couple of bugs when running behind unicorn","user":{"login":"f0o","id":1656377,"avatar_url":"https://avatars.githubusercontent.com/u/1656377?v=3","gravatar_id":"","url":"https://api.github.com/users/f0o","html_url":"https://github.com/f0o","followers_url":"https://api.github.com/users/f0o/followers","following_url":"https://api.github.com/users/f0o/following{/other_user}","gists_url":"https://api.github.com/users/f0o/gists{/gist_id}","starred_url":"https://api.github.com/users/f0o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f0o/subscriptions","organizations_url":"https://api.github.com/users/f0o/orgs","repos_url":"https://api.github.com/users/f0o/repos","events_url":"https://api.github.com/users/f0o/events{/privacy}","received_events_url":"https://api.github.com/users/f0o/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-11T13:32:08Z","updated_at":"2015-01-11T18:28:41Z","closed_at":"2015-01-11T18:26:14Z","body":"Hi,\r\n\r\nI'm trying to use gollum behind a unicorn and nginx.\r\n\r\nIt started out with a bunch of errors in sinatra where the method 'join' was unavailable for whatever reason..\r\nBut well, this got sorted out with a lot of googling and it works so far again. Cause is still unknown to be honest...\r\n\r\nNow the next bug is that it redirects me from `http://domain.tld/` to `http://gollum/Home` - this is not the hostname being passed from nginx or it's canonical... Neither in config.rb, config.ru, unicorn.rb I've specified this and I dont see any option (generally I dont even find a complete list of available configuration-directives!) to configure this.\r\n\r\nSo here a couple of questions:\r\n\r\n1. Is there any list of available configuration-directives?\r\n2. Is there a readonly mode for gollum?\r\n3. What's the preferred way of running gollum in production servers with HTTPS?\r\n4. Is unicorn not supported for gollum?\r\n\r\nThanks,\r\nf0o\r\n\r\n//Edit: it seems like `#gollum` on freenode is empty... too bad...\r\n\r\n//Edit2:\r\n`./app.rb:103:      redirect clean_url(::File.join(@base_url, page_dir, wiki_new.index_page))`\r\nseems to be the redirect that sends me to `http://gollum/Home`\r\n\r\n//Edit3: Generally `ALL` redirects that gollum tries to do are failing...\r\nI got the general impression that gollum is not meant for production and simply doesnt support unicorn.."},"comment":{"url":"https://api.github.com/repos/gollum/gollum/issues/comments/69504900","html_url":"https://github.com/gollum/gollum/issues/938#issuecomment-69504900","issue_url":"https://api.github.com/repos/gollum/gollum/issues/938","id":69504900,"user":{"login":"dometto","id":147111,"avatar_url":"https://avatars.githubusercontent.com/u/147111?v=3","gravatar_id":"","url":"https://api.github.com/users/dometto","html_url":"https://github.com/dometto","followers_url":"https://api.github.com/users/dometto/followers","following_url":"https://api.github.com/users/dometto/following{/other_user}","gists_url":"https://api.github.com/users/dometto/gists{/gist_id}","starred_url":"https://api.github.com/users/dometto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dometto/subscriptions","organizations_url":"https://api.github.com/users/dometto/orgs","repos_url":"https://api.github.com/users/dometto/repos","events_url":"https://api.github.com/users/dometto/events{/privacy}","received_events_url":"https://api.github.com/users/dometto/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T18:28:41Z","updated_at":"2015-01-11T18:28:41Z","body":"> It started out with a bunch of errors in sinatra where the method 'join' was unavailable for whatever reason..\r\n\r\nHard to debug that without a stack trace. This must be caused by some underlying object being `nil`, which points to there being something wrong with your setup (although gollum should of course through a more descriptive error message). Possibly this is an instance of #100, which displays a similar error message.\r\n\r\n> Is there any list of available configuration-directives?\r\n\r\nThe command-line [options](https://github.com/gollum/gollum#running) for `bin/gollum` are generally also configurable when mounting `Precious::App` in a `config.ru`. E.g. use `:h1_title => true` for --h1-title`.\r\n\r\n> Is there a readonly mode for gollum?\r\n\r\n`--no-edit` on the CLI corresponds to `:allow_editing => false` when setting the options in `config.ru`. Given the name mismatches between CLI options and the keys of the `wiki_options` hash, I agree that there should be a wiki page documenting these.\r\n\r\n> What's the preferred way of running gollum in production servers with HTTPS?\r\n\r\nI really have no opinion about what webserver to use in production. :) It shouldn't matter, as long as the rack-server (thin, unicorn, whatever) is functioning correctly, any problems with getting it to work with nginx or apache or whatever should be due to that webserver's configuration.\r\n\r\n> Is unicorn not supported for gollum?\r\n\r\nThe aim is certainly to have it work with any rack compatible webserver. However, without more detail about your setup, it's hard to tell whether your issue is a gollum bug, or a problem with your configuration.\r\n\r\n> ./app.rb:103: redirect clean_url(::File.join(@base_url, page_dir, wiki_new.index_page))\r\nseems to be the redirect that sends me to http://gollum/Home\r\n\r\nIf `@base_url == 'gollum'` that would be a bug, I think. Can you try outputting that variable to debug? `$stderr.puts @base_url.inspect`"}}