Traefik Config reverts after "./runtipi-cli restart"

Hello, I am trying to set up DNS Challange with CloudFlare API. I follows the steps on the runtipi documentation website. I am able to create the .yml file Once I was done editing the treafik.yml with the correct information for "cloudflare" and the email, etc, I then restart runtipi with the command "sudo ./runtipi-cli restart". After the restart I check the traefik.yml to see the changes were reverted. What am I doing wrong? I'm doing exactly what the documentation says. Here is a log error after the runtipi-cli restart: ~ runtipi-reverse-proxy | 2024-07-15T18:15:55Z ERR Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [10.0.0.2:8756]: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rejectedIdentifier :: Invalid identifiers requested :: Cannot issue for \"10.0.0.2:8756\": Domain name contains an invalid character" ACME CA=https://acme-v02.api.letsencrypt.org/directory acmeCA=https://acme-v02.api.letsencrypt.org/directory domains=["10.0.0.2:8756"] providerName=myresolver.acme routerName=homepage@docker rule=Host(`10.0.0.2:8756`) ~ No matter when I change something in the traefik.yml, it always reverts after the restart.
16 Replies
Stavros
Stavros5mo ago
@TazerFace(ItsMetaphorical) see my response on #💬・general
TazerFace(ItsMetaphorical)
I am trying a new API key after making the traefik.yml persistent. Should I do the same for the tipi-compose.yml?
Stavros
Stavros5mo ago
Depends on what you want to change
TazerFace(ItsMetaphorical)
I changed the API key in "tipi-compose.yml" in the /user-config" to the new API, restarted and I get the same error message.
Stavros
Stavros5mo ago
What error message?
TazerFace(ItsMetaphorical)
runtipi-reverse-proxy | 2024-07-15T18:36:35Z ERR Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [10.0.0.2:8096]: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rejectedIdentifier :: Invalid identifiers requested :: Cannot issue for "10.0.0.2:8096": Domain name contains an invalid character" ACME CA=https://acme-v02.api.letsencrypt.org/directory acmeCA=https://acme-v02.api.letsencrypt.org/directory domains=["10.0.0.2:8096"] providerName=myresolver.acme routerName=filebrowser@docker rule=Host(10.0.0.2:8096)
Stavros
Stavros5mo ago
You can ignore that That's because traefik is trying to get a certificate for the ip Which is not possible That's why it's failing But with actual domains it should succeed
TazerFace(ItsMetaphorical)
thanks for the rapid response. this is what I'm looking for! I shall ignore the error messages and drive on.
Stavros
Stavros5mo ago
Yeahp
TazerFace(ItsMetaphorical)
One final question, does runtipi use the dns challenge to create local certs?
Stavros
Stavros5mo ago
Nope local certs are generated locally not by let's encrypt So no http/DNS challenge
TazerFace(ItsMetaphorical)
is there any way to change that?
Stavros
Stavros5mo ago
As far as I am aware no You could generate the certificates yourself With something like certbot And then replace the tipi ones
TazerFace(ItsMetaphorical)
where do I go to replace the runtipi certs? I can generate cf certs no prob
Stavros
Stavros5mo ago
They are inside the traefik/tls folder Although I am not sure if they cert.pem is used for both local and public certificate
TazerFace(ItsMetaphorical)
I will test this out. It would seem to me the "cert.pem" is the same one you can download from the settings tab on the runtipi gui. This is confirmed. Cert.pem is the one runtipi generates for local domains. I will replace the cert/priv with cf ones to see what happens.
Want results from more Discord servers?
Add your server