pek0/jellyfin: expose on jellyfin.ny4.dev
This commit is contained in:
parent
b84a8db5c0
commit
87f542fb92
4 changed files with 21 additions and 1 deletions
|
@ -61,6 +61,7 @@
|
||||||
credentialsFile = config.sops.secrets."cloudflared/secret".path;
|
credentialsFile = config.sops.secrets."cloudflared/secret".path;
|
||||||
default = "http_status:404";
|
default = "http_status:404";
|
||||||
ingress = lib.genAttrs [
|
ingress = lib.genAttrs [
|
||||||
|
"jellyfin.ny4.dev"
|
||||||
"mastodon.ny4.dev"
|
"mastodon.ny4.dev"
|
||||||
"matrix.ny4.dev"
|
"matrix.ny4.dev"
|
||||||
"pek0.ny4.dev"
|
"pek0.ny4.dev"
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.caddy.settings.apps.http.servers.srv0.routes = lib.singleton {
|
||||||
|
match = lib.singleton { host = [ "jellyfin.ny4.dev" ]; };
|
||||||
|
handle = lib.singleton {
|
||||||
|
handler = "reverse_proxy";
|
||||||
|
headers.request.set."X-Forwarded-Proto" = [ "https" ];
|
||||||
|
upstreams = lib.singleton { dial = "127.0.0.1:8096"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,6 +223,15 @@ resource "cloudflare_record" "grafana" {
|
||||||
zone_id = local.cloudflare_zone_id
|
zone_id = local.cloudflare_zone_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "jellyfin" {
|
||||||
|
content = "pek0.ny4.dev"
|
||||||
|
name = "jellyfin"
|
||||||
|
proxied = true
|
||||||
|
ttl = 1
|
||||||
|
type = "CNAME"
|
||||||
|
zone_id = local.cloudflare_zone_id
|
||||||
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "terraform_managed_resource_856ec5e567960bf847db2e814f18168b" {
|
resource "cloudflare_record" "terraform_managed_resource_856ec5e567960bf847db2e814f18168b" {
|
||||||
content = "google-site-verification=wBL5EFnbnt9lt2j_BtcwlXTaBFlFT563mC1MkCscnR8"
|
content = "google-site-verification=wBL5EFnbnt9lt2j_BtcwlXTaBFlFT563mC1MkCscnR8"
|
||||||
name = "ny4.dev"
|
name = "ny4.dev"
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue