blob: 06f040c96884db54a63ceec8db31711d5d9ddb04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
pkgs,
lib,
config,
...
}: let
cfg = config.collinux.services.caddy;
in
lib.mkIf cfg.enable {
services.caddy = {
# just always install this. No harm in installing an extra plugin
package = pkgs.caddy.withPlugins {
plugins = [
"github.com/tailscale/caddy-tailscale@v0.0.0-20251204171825-f070d146dd61"
];
hash = "sha256-cK7C5ISsTwX0FMf891s/Vr22JvRqYEC8GkLfP1L1Mus=";
};
enable = true;
environmentFile = cfg.envFile;
};
networking.firewall.allowedTCPPorts = [80 443];
environment.systemPackages = with pkgs; [nss]; # required for caddy https stuff
}
|