1. Caddy version (caddy version
):
v2.2.1 h1:Q62GWHMtztnvyRU+KPOpw6fNfeCD3SkwH7SfT1Tgt2c=
2. How I run Caddy:
I run caddy from the digital ocean marketplace
a. System environment:
Ubuntu 18.04
d. My complete Caddyfile or JSON config:
{
"admin": {
"listen": "0.0.0.0:2019"
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":80"
],
"routes": [
{
"match": [
{
"host": [
"151.260.28.728"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "www.example.com:80"
}
]
}
]
}
]
}
],
"terminal": true
}
]
},
"srv1": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "www.example.com:80"
}
]
}
]
}
]
}
}
},
"tls": {
"automation": {
"policies": [
{
"on_demand": true
}
],
"on_demand": {
"ask": "https://example.com/caddy/allowed-domain"
}
}
}
}
}
3. The problem I’m having:
Hello, I’m new to Caddy and I’m currently running it from the digital ocean marketplace which is great. I’m having an issue with the on_demand SSL feature, it shows an error when visiting a new domain for the first time (NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED), and autocorrects itself on reload.
From this thread “V2: SSL no certificate available - #17 by matt” it seems the error was fixed on the latest release according to @matt
How do I upgrade the app on Digital ocean to get the update?
Thank you for your time
4. Error messages and/or full log output:
NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED
5. What I already tried:
Google search, and reading the docs