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

unknown config block: local_tls #577

Open
stanislavprokopov opened this issue Apr 2, 2023 · 6 comments
Open

unknown config block: local_tls #577

stanislavprokopov opened this issue Apr 2, 2023 · 6 comments
Labels
bug Something isn't working.

Comments

@stanislavprokopov
Copy link

Describe the bug

Cannot run maddy with tls.loader.acme in config, getting "unknown config block: local_tls" error on start.

Steps to reproduce

  • get latest code from git.
  • in maddy.conf replace tls file /etc/maddy/certs/$(hostname)/fullchain.pem /etc/maddy/certs/$(hostname)/privkey.pem with
tls.loader.acme local_tls {
    email put-your-email-here@example.org
    agreed # indicate your agreement with Let's Encrypt ToS
    challenge dns-01
}

tls &local_tls

this is taken from https://maddy.email/reference/tls-acme/

  • start maddy

Log files

unknown config block: local_tls

Configuration file

see above in steps

Environment information

  • maddy version: master
@stanislavprokopov stanislavprokopov added the bug Something isn't working. label Apr 2, 2023
@onny
Copy link

onny commented May 11, 2023

Also having this issue :( Is there a working example configuration someone is using with acme?

@stanislavprokopov
Copy link
Author

I was able to get it working with following config.

tls {
    loader acme {
        hostname $(hostname)
        email email@somehost.com
        agreed # indicate your agreement with Let's Encrypt ToS
        challenge dns-01

        dns digitalocean {
            api_token "api-key"
        }
    }
}

@onny
Copy link

onny commented May 11, 2023

Is this a global tls configuration? So no tls &local_tls is required?

@stanislavprokopov
Copy link
Author

yes

@cuu508
Copy link
Contributor

cuu508 commented May 23, 2023

Can confirm the example in the documentation gives unknown config block: local_tls error but the snippet in #577 (comment) works. I guess the fix would be to update the example in the documentation.

@gareththered
Copy link

I used a similar example to the documentation, but called named it acme_tls instead of local_tls throughout the config file and it worked.

foxcpp added a commit that referenced this issue Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

4 participants