Skip to content

DiegoMagg/caddy-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caddy-django

Two command reverse proxy for django apps with alpine linux, caddy, pipenv and postgres.

Important tags:

requirements:

  1. Pipenv
  2. Docker
  3. Docker Compose

Instructions:

Setup:

$ git clone git@github.com:DiegoMagg/caddy-django.git .

Create and run server

$ 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.

Caddyfile with domain

yourdomain.com {
  root /path/to/project
  file_server /static
  reverse_proxy web:8000
}

Change localhost to your domain and build.

About

Two command reverse proxy server for django apps!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published