1
0
Fork 0
selfhostblocks/caddy/config.nix

23 lines
305 B
Nix
Raw Normal View History

2022-09-09 08:26:33 +02:00
{ 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}/*
'';
}