• 0 Posts
  • 3 Comments
Joined 6 months ago
cake
Cake day: October 1st, 2024

help-circle
  • excess0680@lemmy.worldtoSelfhosted@lemmy.worldTIL - Caddy
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    18 hours ago

    If you’re using git to version Caddy configuration, you can use a pre-commit hook to test it, ensuring that you’ll never have invalid configuration. That’s what I do.

    caddy validate
    

    There’s some extra command args that may be necessary but that should be an adequate first step.