server.nix/services/feishin.nix

34 lines
673 B
Nix
Raw Permalink Normal View History

2025-01-17 20:55:33 +02:00
{ ... }:
let
port = 9180;
in
{
2024-11-16 02:22:21 +02:00
virtualisation.oci-containers.containers.feishin = {
autoStart = true;
image = "ghcr.io/jeffvli/feishin:latest";
environment = {
SERVER_NAME = "jellyfin";
SERVER_LOCK = "true";
SERVER_TYPE = "jellyfin";
SERVER_URL = "https://jellyfin.catnip.ee";
PUID = "1000";
PGID = "1000";
UMASK = "002";
TZ = "Europe/Tallinn";
};
ports = [
2025-01-17 20:55:33 +02:00
"${toString port}:9180"
2024-11-16 02:22:21 +02:00
];
};
2024-11-30 15:38:34 +02:00
services.caddy.virtualHosts."player.catnip.ee".extraConfig = ''
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
resolvers 1.1.1.1
}
2024-11-16 02:22:21 +02:00
2025-01-17 20:55:33 +02:00
reverse_proxy :${toString port}
2024-11-30 15:38:34 +02:00
'';
2024-11-16 02:22:21 +02:00
}