Skip to content

Commit

Permalink
docs: improve caddy config example
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Jun 6, 2024
1 parent 8485851 commit 43135c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/services/caddy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ in
config = mkOption {
default = "";
example = ''
# Global options block
{
debug
}
# Site block
example.com {
encode gzip
log
Expand All @@ -98,6 +104,10 @@ in
type = types.lines;
description = ''
Verbatim Caddyfile to use.
Refer to [https://caddyserver.com/docs/caddyfile](https://caddyserver.com/docs/caddyfile)
for more information.
Caddy v2 supports multiple config formats via adapters (see [`services.caddy.adapter`](#servicescaddyconfig)).
'';
};
Expand Down

0 comments on commit 43135c5

Please sign in to comment.