Caddyfile v1 to Caddyfile v2 help me

Caddyfile v1:::

apps.xxx.me {
gzip
realip cloudflare
log /mnt/config/caddy/log/caddy.a.log
tls {
dns cloudflare
}
redir /portainer /portainer/
proxy /portainer/ 127.0.0.1:9000 {
without /portainer
transparent
websocket
}

Caddyfile v2:::

apps.xxx.me {
encode gzip
tls xxx@hotmail.com {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
log /config/caddy.a.log
route /portainer/* {
uri strip_prefix /portainer
reverse_proxy 10.148.0.20:9000
}
}
}

apps.xxx.me {
encode gzip
log /config/caddy.a.log
tls xxx@hotmail.com {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}

redir /portainer /portainer/
route /portainer/* {
uri strip_prefix /portainer
reverse_proxy 10.148.0.20:9000
}
}
}

working lol

This topic was automatically closed after 30 days. New replies are no longer allowed.