Replies: 1 comment
-
|
Based on your issue, it sounds like it is trying to make secure requests—likely to itself or another service behind your Caddy proxy—but failing because it doesn't trust your custom Certificate Authority (CA). When you simply "add" the certificate to the container, it often isn't enough because Python applications usually use their own internal certificate store (via the You need to mount your CA file into the container and then tell Python explicitly to use it using environment variables. In your services:
server:
# ... existing config ...
volumes:
# 1. Mount your custom CA certificate (change path as needed)
- /path/to/your/custom-ca.crt:/usr/local/share/ca-certificates/custom-ca.crt:ro
environment:
# 2. Tell Python requests to trust this specific CA bundle
- REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/custom-ca.crt
- SSL_CERT_FILE=/usr/local/share/ca-certificates/custom-ca.crt
# 3. Ensure your Caddy domain is trusted
- CSRF_TRUSTED_ORIGINS=https://your.domain.com
Note on Caddy: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I would like to use AL behind a caddy proxy. For this I need to the container my CA in order to make it work, but I've tried all I could and when I add it it break the ssl part inside so it works not :-(
could someone help me with this?
Beta Was this translation helpful? Give feedback.
All reactions