I didn't find anything better that's also in nixpkgs

This commit is contained in:
jacekpoz 2023-07-15 21:21:49 +02:00
parent 0dd2d4dbf9
commit e8aa151982
2 changed files with 22 additions and 0 deletions

View file

@ -4,5 +4,6 @@ _: {
./configuration.nix
./grafana.nix
./hardware-configuration.nix
./jirafeau.nix
];
}

21
hosts/chmura/jirafeau.nix Normal file
View file

@ -0,0 +1,21 @@
{
config,
pkgs,
inputs,
...
}: {
services.jirafeau = {
enable = true;
dataDir = "/var/jirafeau/files";
};
services.caddy = {
enable = true;
virtualHosts."jacekpoz.pl".extraConfig = ''
reverse_proxy /files/* localhost:7356
'';
};
networking.firewall.allowedTCPPorts = [ 7356 ];
networking.firewall.allowedUDPPorts = [ 7356 ];
}