Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with LetsEncrypt #898

Closed
alec-c4 opened this issue Jul 30, 2024 · 1 comment
Closed

Problem with LetsEncrypt #898

alec-c4 opened this issue Jul 30, 2024 · 1 comment

Comments

@alec-c4
Copy link

alec-c4 commented Jul 30, 2024

As an addition to my previous issue #897 there one more problem with permissions. If you have user other than root in your deploy.yml file

ssh:
  user: alec

and traefik is configured to use letsencrypt

traefik:
  options:
    network: "private"
    publish:
      - "443:443"
    volume:
      - "/letsencrypt/acme.json:/letsencrypt/acme.json" # <------
  args:
    accesslog: true
    log.level: DEBUG
    accesslog.format: json

    entryPoints.web.address: ":80"
    entryPoints.websecure.address: ":443"

    entryPoints.web.http.redirections.entryPoint.to: websecure 
    entryPoints.web.http.redirections.entryPoint.scheme: https
    entryPoints.web.http.redirections.entrypoint.permanent: true

    certificatesResolvers.letsencrypt.acme.email: "info@example.com"
    certificatesResolvers.letsencrypt.acme.storage: "/letsencrypt/acme.json" # <------
    certificatesResolvers.letsencrypt.acme.httpchallenge: true
    certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web 

you'll be unable to store cert locally, because of insufficient permissions (/letsencrypt will be owned by root).

I've tried to follow recommendations from this issue #667 but it doesn't work. I've tried

  • chown on /letsencrypt
  • create ./letsencrypt in home directory + configure deploy.yml

Any idea how to fix it?

@alec-c4 alec-c4 changed the title problem with user other than root Problem with LetsEncrypt Jul 30, 2024
@djmb
Copy link
Collaborator

djmb commented Sep 30, 2024

This should be resolved in Kamal 2. kamal-proxy handles the Let's Encrypt challenge and storing the certificate for you.

@djmb djmb closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants