filebrowser
A file browser for your server
WARNING
This service is in maintence mode, it's recommended to use -quantum version
Example
{config, ...}: {
nps.stacks.filebrowser = {
enable = true;
mounts = {
${config.home.homeDirectory} = "/home";
${config.nps.externalStorageBaseDir} = "/hdd";
};
};
}Stack Options
nps.stacks.filebrowser-quantum.containers.filebrowser-quantum
Alias of {option}services.podman.containers.filebrowser-quantum.
nps.stacks.filebrowser-quantum.enable
Whether to enable filebrowser-quantum.
nps.stacks.filebrowser-quantum.mounts
Mount configuration for the file browser.
Format: { 'hostPath' = container-source-config }
The mounts will be added to the settings source section and a volume mount will be added for each configured source.
attribute set of (submodule)
{ }
{
"/home/foo/media" = {
config = {
disableIndexing = false;
exclude = {
fileEndsWith = [
".zip"
".txt"
];
};
};
path = "/media";
};
"/mnt/ext/data" = {
name = "ext-data";
path = "/data";
};
}
nps.stacks.filebrowser-quantum.mounts.<name>.config
Additional configuration options for the source.
open submodule of (YAML 1.1 value)
{ }
nps.stacks.filebrowser-quantum.mounts.<name>.name
Optional name of the source, otherwise the source gets named the folder name
null or string
null
"folder"
nps.stacks.filebrowser-quantum.mounts.<name>.path
Path of the source in the container
nps.stacks.filebrowser-quantum.oidc.adminGroup
Users of this group will be assigned admin rights
string
"filebrowser-quantum_admin"
nps.stacks.filebrowser-quantum.oidc.clientSecretFile
The file containing the client secret for the OIDC client that will be registered in Authelia.
For examples on how to generate a client secret, see
https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret
string
config.sops.secrets."immich/authelia/client_secret".path"
nps.stacks.filebrowser-quantum.oidc.clientSecretHash
The client secret hash. For examples on how to generate a client secret, see https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret
The value can be passed in multiple ways:
- As a literal string
- As an absolute path to a file containing the hash (
toFile) - As an absolute oath to a file containing the client_secret, in which case the hash will be automatically computed (
toHash) - As
null
If left unset (null), the client secret will be read from the file specified in the clientSecretFile option and hashed automatically before being passed to the Authelia container.
null or string or (submodule)
null
# Literal String:
"$pbkdf2-sha512$310000$cbOAIWbfz3vCVXIPIp6d2A$J0klwULa6TvPRCU1HAfuKua/dMKTl8gbTYJz2N73ejGUu0LUGz/y3kwmJLuKuAYGg3WQOT0q9ZzVHHUvpKpgvQ"
# Client secret hash stored in a file
{ fromFile = config.sops.secrets."immich/client_secret_hash".path; }
# Client secret stored in a file: Hash will be computed dynamically
{ toHash = config.sops.secrets."immich/client_secret".path; }
# Null (default): Hash will be computed automatically based on the clientSecretFile option
# Equivalent to { toHash = cfg.oidc.clientSecretFile; }
null
nps.stacks.filebrowser-quantum.oidc.enable
Whether to enable OIDC login with Authelia. This will register an OIDC client in Authelia and setup the necessary configuration.
For details, see:
nps.stacks.filebrowser-quantum.oidc.userGroup
Users of this group will be able to log in
string
"filebrowser-quantum_user"
nps.stacks.filebrowser-quantum.settings
Settings that will be added to the config.yml.
To configure sources, you should prefer using the mounts option, as the corresponding volume mappings will be
configured automatically.
nps.stacks.filebrowser.containers.filebrowser
Alias of {option}services.podman.containers.filebrowser.
nps.stacks.filebrowser.enable
Whether to enable filebrowser.
nps.stacks.filebrowser.mounts
Mount points for the file browser.
Format: { 'hostPath' = 'containerPath' }
attribute set of string
{
"/home/foo/media" = "/media";
"/mnt/ext/data" = "/data";
}