feat(odin): setup filebrowser.
This commit is contained in:
parent
25c92681a3
commit
a8a79da0ab
4 changed files with 47 additions and 5 deletions
22
flake.lock
generated
22
flake.lock
generated
|
|
@ -1736,6 +1736,22 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_14": {
|
"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": {
|
"locked": {
|
||||||
"lastModified": 1704842529,
|
"lastModified": 1704842529,
|
||||||
"narHash": "sha256-OTeQA+F8d/Evad33JMfuXC89VMetQbsU4qcaePchGr4=",
|
"narHash": "sha256-OTeQA+F8d/Evad33JMfuXC89VMetQbsU4qcaePchGr4=",
|
||||||
|
|
@ -2070,7 +2086,7 @@
|
||||||
"flake-compat": "flake-compat_8",
|
"flake-compat": "flake-compat_8",
|
||||||
"flake-utils": "flake-utils_6",
|
"flake-utils": "flake-utils_6",
|
||||||
"gitignore": "gitignore_5",
|
"gitignore": "gitignore_5",
|
||||||
"nixpkgs": "nixpkgs_14",
|
"nixpkgs": "nixpkgs_15",
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -2502,9 +2518,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_5",
|
"flake-utils": "flake-utils_5",
|
||||||
"gomod2nix": "gomod2nix_2",
|
"gomod2nix": "gomod2nix_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": "nixpkgs_14",
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"pre-commit-hooks": "pre-commit-hooks_4"
|
"pre-commit-hooks": "pre-commit-hooks_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
# My selfhosted service, inspired by 0x0.st
|
# My selfhosted service, inspired by 0x0.st
|
||||||
upfast = {
|
upfast = {
|
||||||
url = "git+https://git.cronyakatsuki.xyz/crony/UpFast";
|
url = "git+https://git.cronyakatsuki.xyz/crony/UpFast";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# My note management app
|
# My note management app
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,6 @@
|
||||||
./upfast.nix
|
./upfast.nix
|
||||||
./miniflux.nix
|
./miniflux.nix
|
||||||
./website.nix
|
./website.nix
|
||||||
|
./filebrowser.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
27
modules/servers/odin/filebrowser.nix
Normal file
27
modules/servers/odin/filebrowser.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue