niksos/hosts/chmura/trollface.pl/default.nix
2023-11-25 17:12:09 +01:00

16 lines
337 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
'';
};
}