Skip to content

panel v1.11.3 - Cannot make caddy use certificates #155

@Kintull

Description

@Kintull

Hi, thanks for the great work making this repo.

I used the start guide, generated the cert and the key using certbot.
I set variables SSL_CERT and SSL_CERT_KEY in panel.env. After I start panel, in logs I see

docker-compose logs -f panel
pterodactyl-panel-1    | [tls-config] Cannot find SSL certificate and/or key, not injecting tls rules.

I connected to the panel pod with /bin/sh checked that variables are set in the environment, executed the entry point tls-config helper and got this:

sh-5.1# ./entrypoint.d/20-tls-config.sh
[tls-config] Using external certificates. 

It means the code does see the varialbles. Any idea why it does not work for the panel starting procedure? Any tips on how to debug?

---- Update
the problem happens when executing as caddy user

[root@ecee86afbe49 /]# runuser --user caddy ./entrypoint.d/20-tls-config.sh
[tls-config] Cannot find SSL certificate and/or key, not injecting tls rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions