Migrated Filebrowser
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../nixos/roles/searxng.nix
|
|
||||||
../../nixos/roles/frontpage
|
|
||||||
../../nixos/roles/vaultwarden.nix
|
|
||||||
../../nixos/roles/gitea.nix
|
../../nixos/roles/gitea.nix
|
||||||
|
../../nixos/roles/filebrowser.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|||||||
19
nixos/roles/filebrowser.nix
Normal file
19
nixos/roles/filebrowser.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.filebrowser = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
port = 8080;
|
||||||
|
address = "0.0.0.0";
|
||||||
|
baseURL = "/filebrowser";
|
||||||
|
root = "/storage";
|
||||||
|
};
|
||||||
|
|
||||||
|
# If you want the port opened in the firewall:
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
#networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user