Two command reverse proxy for django apps with alpine linux, caddy, pipenv and postgres.
Important tags:
requirements:
$ git clone git@github.com:DiegoMagg/caddy-django.git .
$ python3 setup.py your_project_name
$ make up
Then, go to your browser and type: https://localhost
note: Caddy automagically set https as described here. During tests, both firefox and google chrome will warn you due to a TLS handshake error since localhost have a unknown certificate authority. Just bypass the alert through advanced settings and see django initial page.
yourdomain.com {
root /path/to/project
file_server /static
reverse_proxy web:8000
}
Change localhost to your domain and build.