{"action":"created","issue":{"url":"https://api.github.com/repos/progrium/dokku/issues/1743","labels_url":"https://api.github.com/repos/progrium/dokku/issues/1743/labels{/name}","comments_url":"https://api.github.com/repos/progrium/dokku/issues/1743/comments","events_url":"https://api.github.com/repos/progrium/dokku/issues/1743/events","html_url":"https://github.com/progrium/dokku/issues/1743","id":120205095,"number":1743,"title":"Config en nginx cause net::ERR_TOO_MANY_REDIRECTS.","user":{"login":"fabdelgado","id":8621547,"avatar_url":"https://avatars.githubusercontent.com/u/8621547?v=3","gravatar_id":"","url":"https://api.github.com/users/fabdelgado","html_url":"https://github.com/fabdelgado","followers_url":"https://api.github.com/users/fabdelgado/followers","following_url":"https://api.github.com/users/fabdelgado/following{/other_user}","gists_url":"https://api.github.com/users/fabdelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/fabdelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabdelgado/subscriptions","organizations_url":"https://api.github.com/users/fabdelgado/orgs","repos_url":"https://api.github.com/users/fabdelgado/repos","events_url":"https://api.github.com/users/fabdelgado/events{/privacy}","received_events_url":"https://api.github.com/users/fabdelgado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T15:58:50Z","updated_at":"2015-12-03T17:13:43Z","closed_at":null,"body":"Config en nginx cause net::ERR_TOO_MANY_REDIRECTS.\r\n\r\nAny ideas?\r\n```\r\nserver {\r\n  listen      [::]:$NGINX_PORT;\r\n  listen      $NGINX_PORT;\r\n  server_name $NOSSL_SERVER_NAME;\r\n  access_log  /var/log/nginx/${APP}-access.log;\r\n  error_log   /var/log/nginx/${APP}-error.log;\r\n\r\n  listen      443 ssl;\r\n  ssl_certificate     /home/dokku/tilo/tls/ssl-bundle.crt;\r\n  ssl_certificate_key /home/dokku/tilo/tls/server.key;\r\n\r\n\r\n  location    / {\r\n\r\n    proxy_pass  http://$APP;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade \\$http_upgrade;\r\n    proxy_set_header Connection \"upgrade\";\r\n    proxy_set_header Host \\$http_host;\r\n    proxy_set_header X-Forwarded-Proto \\$scheme;\r\n    proxy_set_header X-Forwarded-For \\$remote_addr;\r\n    proxy_set_header X-Forwarded-Port \\$server_port;\r\n    proxy_set_header X-Request-Start \\$msec;\r\n  }\r\n  include $DOKKU_ROOT/$APP/nginx.conf.d/*.conf;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/progrium/dokku/issues/comments/161719747","html_url":"https://github.com/progrium/dokku/issues/1743#issuecomment-161719747","issue_url":"https://api.github.com/repos/progrium/dokku/issues/1743","id":161719747,"user":{"login":"fabdelgado","id":8621547,"avatar_url":"https://avatars.githubusercontent.com/u/8621547?v=3","gravatar_id":"","url":"https://api.github.com/users/fabdelgado","html_url":"https://github.com/fabdelgado","followers_url":"https://api.github.com/users/fabdelgado/followers","following_url":"https://api.github.com/users/fabdelgado/following{/other_user}","gists_url":"https://api.github.com/users/fabdelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/fabdelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabdelgado/subscriptions","organizations_url":"https://api.github.com/users/fabdelgado/orgs","repos_url":"https://api.github.com/users/fabdelgado/repos","events_url":"https://api.github.com/users/fabdelgado/events{/privacy}","received_events_url":"https://api.github.com/users/fabdelgado/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T17:13:43Z","updated_at":"2015-12-03T17:13:43Z","body":"@michaelshobbs  nginx.conf\r\n\r\n\r\nerver {\r\n  listen      [::]:80;\r\n  listen      80;\r\n  server_name tilo.dobled.uy ;\r\n  access_log  /var/log/nginx/tilo-access.log;\r\n  error_log   /var/log/nginx/tilo-error.log;\r\n\r\n  listen      443 ssl;\r\n  ssl_certificate     /home/dokku/tilo/tls/ssl-bundle.crt;\r\n  ssl_certificate_key /home/dokku/tilo/tls/server.key;\r\n\r\n\r\n  location    / {\r\n\r\n    proxy_pass  http://tilo;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection upgrade;\r\n    proxy_set_header Host $http_host;\r\n    proxy_set_header X-Forwarded-Proto $scheme;\r\n    proxy_set_header X-Forwarded-For $remote_addr;\r\n    proxy_set_header X-Forwarded-Port $server_port;\r\n    proxy_set_header X-Request-Start $msec;\r\n  }\r\n  include /home/dokku/tilo/nginx.conf.d/*.conf;\r\n}\r\nupstream tilo {\r\n  server 172.17.0.3:5000;\r\n}"}}