niksos/hosts/chmura/trollface.pl/default.nix
2024-07-16 00:26:09 +02:00

16 lines
333 B
Nix

{
services.caddy = {
enable = true;
virtualHosts."trollface.pl".extraConfig = ''
@discord {
header_regexp User-Agent (?i)(Discord)
path /
}
rewrite @discord /trollface.png
root * ${./.}
file_server
'';
};
}