commit
81c741f5da
3 changed files with 28 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
"immich"
|
"immich"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"kavita"
|
"kavita"
|
||||||
|
"libretranslate"
|
||||||
"lidarr"
|
"lidarr"
|
||||||
"miniflux"
|
"miniflux"
|
||||||
"ntfy-sh"
|
"ntfy-sh"
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,13 @@ in
|
||||||
href = "https://cryptpad.fi33.buzz/";
|
href = "https://cryptpad.fi33.buzz/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
LibreTranslate = {
|
||||||
|
description = "Machine Translation API";
|
||||||
|
icon = "libretranslate.svg";
|
||||||
|
href = "https://translate.fi33.buzz/";
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
Send = {
|
Send = {
|
||||||
description = "Simple, private file sharing";
|
description = "Simple, private file sharing";
|
||||||
|
|
|
||||||
20
modules/nixos/features/libretranslate.nix
Normal file
20
modules/nixos/features/libretranslate.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
let
|
||||||
|
port = 5023;
|
||||||
|
certloc = "/var/lib/acme/fi33.buzz";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
libretranslate = {
|
||||||
|
enable = true;
|
||||||
|
inherit port;
|
||||||
|
updateModels = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
caddy.virtualHosts."translate.fi33.buzz".extraConfig = ''
|
||||||
|
reverse_proxy localhost:${toString port}
|
||||||
|
tls ${certloc}/cert.pem ${certloc}/key.pem {
|
||||||
|
protocols tls1.3
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue