niksos/hosts/chmura/ankisyncd.nix

20 lines
367 B
Nix
Raw Normal View History

{
config,
pkgs,
...
}: {
services.ankisyncd = {
enable = true;
};
services.caddy = {
enable = true;
virtualHosts."a.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:27701
'';
};
networking.firewall.allowedTCPPorts = [ 27701 ];
networking.firewall.allowedUDPPorts = [ 27701 ];
}