mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
caddy: Add extraConfig option
This commit is contained in:
parent
82844a3bb4
commit
2f246153d4
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ let
|
||||||
domain,
|
domain,
|
||||||
port,
|
port,
|
||||||
files,
|
files,
|
||||||
|
extraConfig,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
lib.nameValuePair domain {
|
lib.nameValuePair domain {
|
||||||
|
|
@ -43,6 +44,7 @@ let
|
||||||
encode
|
encode
|
||||||
file_server
|
file_server
|
||||||
'')
|
'')
|
||||||
|
(lib.optionalString (extraConfig != null) extraConfig)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
@ -73,6 +75,10 @@ in
|
||||||
type = lib.types.nullOr lib.types.path;
|
type = lib.types.nullOr lib.types.path;
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
extraConfig = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.lines;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue