Failed to get certificate

Thanks for answering my questions.

I think I will try the plugin you suggested.

I’ve update the caddy build to include the http.jwt plugin and I’ve updated my Caddyfile which looks like this. I’m doing something wrong as Caddy is failing to start, could you check my syntax please?

(secure) {
jwt {
path /
redirect /login?backTo={uri}
}
}

myusername.asuscomm.com {

Landing page config

Loginsrv

login {
login_path /login
logout_url myusername.asuscomm.com
redirect_check_referer false
cookie_domain myusername.asuscomm.com
htpasswd file=/etc/.htpasswd
jwt_expiry 12h
}
}

myusername.asuscomm.com {
proxy / username:password
import secure
}

myusername.asuscomm.com {

#sabnzbd

proxy /sabnzb 127.0.0.1:38081 {
transparent
}

#sonarr

proxy /sonarr 127.0.0.1:38082 {
transparent
}

#radarr

proxy /radarr 127.0.0.1:38083 {
transparent
}

#nzbhydra

proxy /nzbhydra2 127.0.0.1:38084/ {
transparent
header_upstream X-Forwarded-Host {host}
}
rewrite / {
regexp ^/nzbhydra2$
to /nzbhydra2/
}