niksos/hosts/chmura/trollface.pl/default.nix

17 lines
336 B
Nix
Raw Normal View History

2024-09-01 22:51:32 +02:00
_: {
2023-11-25 17:12:09 +01:00
services.caddy = {
enable = true;
virtualHosts."trollface.pl".extraConfig = ''
@discord {
header_regexp User-Agent (?i)(Discord)
path /
}
rewrite @discord /trollface.png
root * ${./.}
file_server
'';
};
}