Use **nginx** to redirect default heroku domain to custom domain. **nginx** should also [improve latency issues](https://github.com/heroku/heroku-buildpack-nginx/blob/main/PROXY.md#original-motivation). - buildpack: https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-nginx - documentation: https://github.com/heroku/heroku-buildpack-nginx/blob/main/PROXY.md ----- - [x] serve app w/ nginx acting as a reverse-proxy for gunicorn - [x] redirect http to https - [ ] redirect subdomain ("www") - [x] redirect default domain - [x] clean up old middleware - [ ] use gunicorn config file instead of command-line arguments - [x] fine-tune number of workers, etc.
Use nginx to redirect default heroku domain to custom domain.
nginx should also improve latency issues.
buildpack: https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-nginx
documentation: https://github.com/heroku/heroku-buildpack-nginx/blob/main/PROXY.md