mirror of
https://github.com/lucaslorentz/caddy-docker-proxy.git
synced 2025-12-12 18:21:18 +01:00
1
Use on_demand_tls
Arjen edited this page 2025-02-21 14:25:33 +01:00
You can enable on_demand_tls by adding the follwing labels:
labels:
caddy_0: yourbasedomain.com
caddy_0.reverse_proxy: '{{upstreams 8080}}'
caddy.on_demand_tls:
caddy.on_demand_tls.ask: http://yourinternalcontainername:8080/v1/tls-domain-check # Replace with a full domain if you don't have the service on the same docker network.
caddy_1: https:// # Get all https:// requests (happens if caddy_0 match is false)
caddy_1.tls_0.on_demand:
caddy_1.reverse_proxy: http://yourinternalcontainername:3001 # Replace with a full domain if you don't have the service on the same docker network.