{"action":"closed","issue":{"url":"https://api.github.com/repos/progrium/dokku/issues/1441","labels_url":"https://api.github.com/repos/progrium/dokku/issues/1441/labels{/name}","comments_url":"https://api.github.com/repos/progrium/dokku/issues/1441/comments","events_url":"https://api.github.com/repos/progrium/dokku/issues/1441/events","html_url":"https://github.com/progrium/dokku/issues/1441","id":104855998,"number":1441,"title":"Custom nginx.conf.template is not used","user":{"login":"sbrosinski","id":325760,"avatar_url":"https://avatars.githubusercontent.com/u/325760?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrosinski","html_url":"https://github.com/sbrosinski","followers_url":"https://api.github.com/users/sbrosinski/followers","following_url":"https://api.github.com/users/sbrosinski/following{/other_user}","gists_url":"https://api.github.com/users/sbrosinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrosinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrosinski/subscriptions","organizations_url":"https://api.github.com/users/sbrosinski/orgs","repos_url":"https://api.github.com/users/sbrosinski/repos","events_url":"https://api.github.com/users/sbrosinski/events{/privacy}","received_events_url":"https://api.github.com/users/sbrosinski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-04T09:20:34Z","updated_at":"2015-09-04T17:13:20Z","closed_at":"2015-09-04T17:13:20Z","body":"The documentation states that I can put a nginx.conf.template in my app root. \r\nDokku doesn't seem to use it. When I check /home/dokku/myapp on the server it always ends up with the default nginx.conf, but not mine.\r\n\r\nI tried to validate my nginx conf with `nginx -t -c nginx.conf.template`, which can't succeed because of the undefined template variables.\r\n\r\nMy nginx.conf.template looks like this:\r\n\r\n````\r\nserver {\r\n  listen      [::]:80;\r\n  listen      80;\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\r\n\r\n  location {\r\n    add_header X-Served-By Stephan;\r\n\r\n    gzip on;\r\n    gzip_min_length  1100;\r\n    gzip_buffers  4 32k;\r\n    gzip_types    text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml  application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;\r\n    gzip_vary on;\r\n    gzip_comp_level  6;\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```"}}