{"action":"created","issue":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/2560","labels_url":"https://api.github.com/repos/mperham/sidekiq/issues/2560/labels{/name}","comments_url":"https://api.github.com/repos/mperham/sidekiq/issues/2560/comments","events_url":"https://api.github.com/repos/mperham/sidekiq/issues/2560/events","html_url":"https://github.com/mperham/sidekiq/issues/2560","id":107262582,"number":2560,"title":"[SOLUTION] Getting 403 Forbidden in Production - Rack-protection & Nginx","user":{"login":"codebender","id":987305,"avatar_url":"https://avatars.githubusercontent.com/u/987305?v=3","gravatar_id":"","url":"https://api.github.com/users/codebender","html_url":"https://github.com/codebender","followers_url":"https://api.github.com/users/codebender/followers","following_url":"https://api.github.com/users/codebender/following{/other_user}","gists_url":"https://api.github.com/users/codebender/gists{/gist_id}","starred_url":"https://api.github.com/users/codebender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebender/subscriptions","organizations_url":"https://api.github.com/users/codebender/orgs","repos_url":"https://api.github.com/users/codebender/repos","events_url":"https://api.github.com/users/codebender/events{/privacy}","received_events_url":"https://api.github.com/users/codebender/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-18T19:24:34Z","updated_at":"2015-10-07T22:49:27Z","closed_at":"2015-09-18T20:12:02Z","body":"I was continuing to get a 403 Forbidden in Production with sidekiq version 3.5.0, but I was unable to reproduce the problem locally with the my app nor the sidekiq sample rails app.  All signs pointed to SSL/https. Luckily I found this blog post: [Rack-protection and Nginx](http://www.sourcediver.org/blog/2015/07/01/rack-protection-and-nginx/) by @mguentner.\r\n\r\nAfter adding `proxy_set_header X-Forwarded-Proto $scheme;` to my nginx configuration. :boom:!! It worked!\r\n\r\n@mperham Perhaps you should add a link in the Wiki that points to the blog post or the nginx config for those that use nginx and https\r\n\r\nMany thanks to @mguentner"},"comment":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/comments/146354644","html_url":"https://github.com/mperham/sidekiq/issues/2560#issuecomment-146354644","issue_url":"https://api.github.com/repos/mperham/sidekiq/issues/2560","id":146354644,"user":{"login":"codebender","id":987305,"avatar_url":"https://avatars.githubusercontent.com/u/987305?v=3","gravatar_id":"","url":"https://api.github.com/users/codebender","html_url":"https://github.com/codebender","followers_url":"https://api.github.com/users/codebender/followers","following_url":"https://api.github.com/users/codebender/following{/other_user}","gists_url":"https://api.github.com/users/codebender/gists{/gist_id}","starred_url":"https://api.github.com/users/codebender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebender/subscriptions","organizations_url":"https://api.github.com/users/codebender/orgs","repos_url":"https://api.github.com/users/codebender/repos","events_url":"https://api.github.com/users/codebender/events{/privacy}","received_events_url":"https://api.github.com/users/codebender/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T22:49:27Z","updated_at":"2015-10-07T22:49:27Z","body":"@juanibiapina Have you tried cloning the sidekiq repo, and running [myapp](https://github.com/mperham/sidekiq/tree/master/myapp)? Can you reproduce the `forbidden` response there? \r\n\r\nWhat kind of auth are you using?  Can you paste your sidekiq config?"}}