Caddy: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny mNo edit summary |
||
Line 32: | Line 32: | ||
enable = true; | enable = true; | ||
virtualHosts."example.org".extraConfig = '' | virtualHosts."example.org".extraConfig = '' | ||
encode gzip | |||
file_server | |||
root * ${ | |||
pkgs.runCommand "testdir" {} '' | |||
mkdir "$out" | |||
echo hello world > "$out/example.html" | |||
'' | |||
} | } | ||
''; | ''; |