1. Output of caddy version
:
v2.6.2
2. How I run Caddy:
I have a docker image that create container with python and caddy installed,
I run a django multitenant application on port 8001 and use caddy as proxy
a. System environment:
A docker ubuntu image with python and caddy installed
b. Command:
docker-entrypont.sh
python3 manage.py migrate --noinput
python3 manage.py collectstatic --noinput
gunicorn app.wsgi --bind 0.0.0.0:8001 &
cady run
c. Service/unit/compose file:
d. My complete Caddy config:
{
debug
# local_certs
on_demand_tls {
burst 100
}
email $email
storage file_system /caddy
}
:80, :443 {
reverse_proxy 0.0.0.0:8001
tls {
on_demand
}
}
3. The problem I’m having:
I have a multitenant django application that I show the content based on the domain that user request my application.
I am running now the application with google cloud run, I added also an HTTP(S) load balancer with a static ip address.
I am planning to tell users to write this ip address to their A dns record and use caddy to generate ssl certificates.
For storage I am planning to use s3 or redis to have central place for certificates.
Also I will add the ask API for on demand certificates.
Is this a way to go, or I am in a wrong direction?
I know how to fix with self managed vps but I wanted to do this with cloud run if it is possible.
If I test locally it works perfect with local_certs.
The problem for now is that http work perfectly but not https, and I don’t know how to fix this.