feat(odin): setup filebrowser.

This commit is contained in:
CronyAkatsuki 2025-11-06 23:59:48 +01:00
parent 25c92681a3
commit a8a79da0ab
4 changed files with 47 additions and 5 deletions

22
flake.lock generated
View file

@ -1736,6 +1736,22 @@
}
},
"nixpkgs_14": {
"locked": {
"lastModified": 1709237383,
"narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_15": {
"locked": {
"lastModified": 1704842529,
"narHash": "sha256-OTeQA+F8d/Evad33JMfuXC89VMetQbsU4qcaePchGr4=",
@ -2070,7 +2086,7 @@
"flake-compat": "flake-compat_8",
"flake-utils": "flake-utils_6",
"gitignore": "gitignore_5",
"nixpkgs": "nixpkgs_14",
"nixpkgs": "nixpkgs_15",
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
@ -2502,9 +2518,7 @@
"inputs": {
"flake-utils": "flake-utils_5",
"gomod2nix": "gomod2nix_2",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs": "nixpkgs_14",
"pre-commit-hooks": "pre-commit-hooks_4"
},
"locked": {

View file

@ -77,7 +77,7 @@
# My selfhosted service, inspired by 0x0.st
upfast = {
url = "git+https://git.cronyakatsuki.xyz/crony/UpFast";
inputs.nixpkgs.follows = "nixpkgs";
# inputs.nixpkgs.follows = "nixpkgs";
};
# My note management app

View file

@ -7,5 +7,6 @@
./upfast.nix
./miniflux.nix
./website.nix
./filebrowser.nix
];
}

View file

@ -0,0 +1,27 @@
{
services.filebrowser = {
enable = true;
};
services.traefik.dynamicConfigOptions.http = {
services.filebrowser.loadBalancer.servers = [
{
url = "http://localhost:8080";
}
];
routers.filebrowser = {
rule = "Host(`filebrowser.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "filebrowser";
entrypoints = "websecure";
};
};
services.restic.backups = {
local.paths = ["/var/lib/filebrowser"];
server.paths = ["/var/lib/filebrowser"];
};
}