1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-19 17:43:46 +02:00
parent d8eca2e62d
commit 3887e64f58
No known key found for this signature in database
2 changed files with 216 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{config, ...}: let
virtualHostName = "filebrowser.helveticanonstandard.net";
cfg = config.services.filebrowser;
in{
services.filebrowser = {
enable = true;
settings = {
address = "localhost";
port = 8090;
database = "/var/lib/filebrowser/filebrowser.db";
};
};
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}";
};
}