forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/caddy: optional formatting of Caddyfile
As explained in caddyserver/caddy#5930 (comment), `caddy fmt` doesn’t handle heredocs. The existing module always runs `caddy fmt` on native builds, and thus for a configuration containing a heredoc, the service fails at runtime. This change is simple, and backwards compatible. Alternatives I considered include only using the output of `caddy fmt` if `caddy adapt` also succeeds, removing the formatting and adding an option defaulting to false. Adding an option that defaults to true allows users to disable `caddy fmt` for other reasons, thoguh.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters