1
0
Fork 0
puter/hosts/abacus/filebrowser.nix

27 lines
522 B
Nix
Raw Normal View History

2025-05-30 22:59:10 +02:00
{ config, ... }:
let
2025-05-19 17:43:46 +02:00
virtualHostName = "filebrowser.helveticanonstandard.net";
cfg = config.services.filebrowser;
2025-05-30 22:59:10 +02:00
in
{
2025-05-19 17:43:46 +02:00
services.filebrowser = {
enable = true;
settings = {
address = "localhost";
port = 8090;
};
};
services.nginx.virtualHosts.${virtualHostName} = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass =
let
host = cfg.settings.address;
port = builtins.toString cfg.settings.port;
in
"http://${host}:${port}";
};
}