Merge pull request #28481 from mpcsh/master

nixos/caddy: improve documentation
This commit is contained in:
Peter Hoeg 2017-08-25 09:56:40 +08:00 committed by GitHub
commit ecdabb1b5b

View File

@ -5,12 +5,22 @@ with lib;
let
cfg = config.services.caddy;
configFile = pkgs.writeText "Caddyfile" cfg.config;
in
{
in {
options.services.caddy = {
enable = mkEnableOption "Caddy web server";
config = mkOption {
default = "";
example = ''
example.com {
gzip
minify
log syslog
root /srv/http
}
'';
type = types.lines;
description = "Verbatim Caddyfile to use";
};