stuff
This commit is contained in:
parent
d8eca2e62d
commit
3887e64f58
2 changed files with 216 additions and 0 deletions
25
hosts/abacus/filebrowser.nix
Normal file
25
hosts/abacus/filebrowser.nix
Normal 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}";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue