syntax nitpicking

This commit is contained in:
Motiejus Jakštys 2023-09-17 22:16:11 +03:00
parent f38fd993d3
commit ed8c51b45c

View File

@ -20,9 +20,9 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts.":80".extraConfig = '' virtualHosts.":80".extraConfig = with myData.subnets; ''
root * ${cfg.dataDir} root * ${cfg.dataDir}
@denied not remote_ip ${subnets.vno1.cidr} ${subnets.vno3.cidr} ${subnets.tailscale.cidr} @denied not remote_ip ${vno1.cidr} ${vno3.cidr} ${tailscale.cidr}
file_server browse {} file_server browse {}
encode gzip encode gzip
''; '';