feat(freyja): add immich.
This commit is contained in:
parent
ec8c8f5e33
commit
19999dd485
2 changed files with 30 additions and 0 deletions
|
@ -1,2 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./immich.nix
|
||||
];
|
||||
}
|
||||
|
|
27
modules/servers/freyja/immich.nix
Normal file
27
modules/servers/freyja/immich.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{...}: {
|
||||
services.immich = {
|
||||
enable = true;
|
||||
port = 2283;
|
||||
host = "127.0.0.1";
|
||||
accelerationDevices = ["/dev/dri/renderD128"];
|
||||
};
|
||||
|
||||
users.users.immich.extraGroups = ["video" "render"];
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.immich.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:2283";
|
||||
}
|
||||
];
|
||||
|
||||
routers.immich = {
|
||||
rule = "Host(`immich.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "immich";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue