hosts/frikandel: add jellyfin forward
This commit is contained in:
parent
451ed9928f
commit
048e6a6bb4
|
@ -9,5 +9,6 @@
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./email.nix
|
./email.nix
|
||||||
./website.nix
|
./website.nix
|
||||||
|
./jellyfin-forward.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
17
hosts/frikandel/jellyfin-forward.nix
Normal file
17
hosts/frikandel/jellyfin-forward.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
flake,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
security.acme.certs = {
|
||||||
|
"media.b12f.io" = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."media.b12f.io" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "media.b12f.io";
|
||||||
|
locations."/".proxyPass = "https://media.b12f.io";
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,6 +8,8 @@
|
||||||
networking.hostName = "frikandel";
|
networking.hostName = "frikandel";
|
||||||
networking.hostId = "44234773";
|
networking.hostId = "44234773";
|
||||||
networking.nameservers = [
|
networking.nameservers = [
|
||||||
|
"10.13.12.7"
|
||||||
|
"fd00:b12f:acab:1312:acab:7::"
|
||||||
"193.110.81.0" #dns0.eu
|
"193.110.81.0" #dns0.eu
|
||||||
"2a0f:fc80::" #dns0.eu
|
"2a0f:fc80::" #dns0.eu
|
||||||
"185.253.5.0" #dns0.eu
|
"185.253.5.0" #dns0.eu
|
||||||
|
|
|
@ -176,6 +176,6 @@ resource "hostingde_record" "b12f-media" {
|
||||||
zone_id = hostingde_zone.b12f.id
|
zone_id = hostingde_zone.b12f.id
|
||||||
name = "media.b12f.io"
|
name = "media.b12f.io"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
content = "droppie.b12f.io"
|
content = "frikandel.b12f.io"
|
||||||
ttl = 300
|
ttl = 300
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue