1
0
Fork 0
selfhostblocks/caddy/config.nix
2023-02-19 20:37:52 -08:00

22 lines
305 B
Nix

{ stdenv
, pkgs
, utils
}:
{ configDir ? "/etc/caddy"
, configFile ? "Caddyfile"
, siteConfigDir
}:
utils.mkConfigFile {
name = configFile;
dir = configDir;
content = ''
{
# Disable auto https
http_port 10001
https_port 10002
}
import ${siteConfigDir}/*
'';
}