forked from poz/niksos
I didn't find anything better that's also in nixpkgs
This commit is contained in:
parent
0dd2d4dbf9
commit
e8aa151982
2 changed files with 22 additions and 0 deletions
|
@ -4,5 +4,6 @@ _: {
|
|||
./configuration.nix
|
||||
./grafana.nix
|
||||
./hardware-configuration.nix
|
||||
./jirafeau.nix
|
||||
];
|
||||
}
|
||||
|
|
21
hosts/chmura/jirafeau.nix
Normal file
21
hosts/chmura/jirafeau.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in a new issue