I previously made a thread on why Pterodactyl doesn’t work with Caddy: Caddy with Pterodactyl
Interestingly, I just tried again with the exact config in that thread and I am not having any of the issues that I previously had.
However, the last problem is with WIngs (the daemon for the panel). That also uses the same certificate that Certbot made.
This is currently the configuration file
...
api:
host: 0.0.0.0
port: 8080
ssl:
enabled: true
cert: /etc/letsencrypt/live/panel.telesphoreo.me/fullchain.pem
key: /etc/letsencrypt/live/panel.telesphoreo.me/privkey.pem
upload_limit: 100
...
I tried replacing it with the directory to Caddy’s certificates and now it gives this error
2021/05/09 14:23:25 http: TLS handshake error from <ip>:53012: remote error: tls: unknown certificate
Self explanatory, it doesn’t like that certificate.
cert: /root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/panel.telesphoreo.me/panel.telesphoreo.me.crt
key: /root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/panel.telesphoreo.me/panel.telesphoreo.me.key