{"action":"opened","issue":{"url":"https://api.github.com/repos/dokku-alt/dokku-alt/issues/301","labels_url":"https://api.github.com/repos/dokku-alt/dokku-alt/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/dokku-alt/dokku-alt/issues/301/comments","events_url":"https://api.github.com/repos/dokku-alt/dokku-alt/issues/301/events","html_url":"https://github.com/dokku-alt/dokku-alt/issues/301","id":114809460,"number":301,"title":"Make NGINX port configurable","user":{"login":"oschettler","id":124634,"avatar_url":"https://avatars.githubusercontent.com/u/124634?v=3","gravatar_id":"","url":"https://api.github.com/users/oschettler","html_url":"https://github.com/oschettler","followers_url":"https://api.github.com/users/oschettler/followers","following_url":"https://api.github.com/users/oschettler/following{/other_user}","gists_url":"https://api.github.com/users/oschettler/gists{/gist_id}","starred_url":"https://api.github.com/users/oschettler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oschettler/subscriptions","organizations_url":"https://api.github.com/users/oschettler/orgs","repos_url":"https://api.github.com/users/oschettler/repos","events_url":"https://api.github.com/users/oschettler/events{/privacy}","received_events_url":"https://api.github.com/users/oschettler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T12:56:06Z","updated_at":"2015-11-03T12:56:06Z","closed_at":null,"body":"In file `/var/lib/dokku-alt/plugins/nginx-vhosts/post-deploy`, the port that NGINX listens on is hard-wired\r\n\r\n````bash\r\n  cat<<EOF\r\nserver {\r\n  listen      $DOKKU_LISTEN_IPV6:80;\r\n  listen      $DOKKU_LISTEN_IPV4:80;\r\n  server_name $@;\r\n  return 301 $WHERE;\r\n}\r\nEOF\r\n````\r\n\r\nIn our configuration, we run NGINX on port 80 behind VARNISH, which in turn serves port 80.\r\nTherefore, I would like to make the port that NGINX listens on variable. A potential place would be `/home/dokku/dokkurc` which is sourced in `/usr/local/bin/dokku`. "}}