Closed agrberg closed 4 years ago
Sooooo I kept at it and figured out that the comments and instructions were unclear/out-of-date. Turns out building your own NGINX is pretty easy so I wrapped up what I learned for others in https://github.com/heroku/heroku-buildpack-nginx/pull/63.
The README mentions that it is possible to customize nginx's compile options via the https://github.com/heroku/heroku-buildpack-nginx/blob/master/scripts/build_nginx script.
The script says it's designed to be run in a Heroku web dyno and the final binary downloaded for vendoring. However, it is light on details as to how to go about this.
Looking through the script's history, I've found a call to setup a Python web server but this was removed in https://github.com/heroku/heroku-buildpack-nginx/commit/a51ae6300ca6b80a82f3ec0f446025229edfd8da#diff-c1594fe8a33425936bb1b25a1f142c6b. Perhaps a red herring but the loop to keep the bash script running was also removed in https://github.com/heroku/heroku-buildpack-nginx/commit/e64133f2f3ebccdcb8bbdca422294dfa6ecd6897#diff-c1594fe8a33425936bb1b25a1f142c6b.
What I've attempted so far is:
--with-http_geoip_module
in the./configure
call)requirements.txt
file so Heroku would use the Python buildpack)Profile
withweb: scripts/build_nginx
I'm able to deploy by my logs.txt (relevant portion duplicated below) say the app crashes.
Googling has also hit a dead end for the moment so I'm hopeful that whatever I'm missing is more obvious to those with more experience than me.