mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(hakurei): plex access
This commit is contained in:
parent
ba7f32ddcb
commit
fa43ee87de
3 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
meta,
|
meta,
|
||||||
|
access,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = let
|
imports = let
|
||||||
|
|
@ -13,6 +14,7 @@
|
||||||
nixos.cloudflared
|
nixos.cloudflared
|
||||||
nixos.nginx
|
nixos.nginx
|
||||||
nixos.access.proxmox
|
nixos.access.proxmox
|
||||||
|
nixos.access.plex
|
||||||
];
|
];
|
||||||
|
|
||||||
sops.secrets.cloudflared-tunnel-hakurei = {
|
sops.secrets.cloudflared-tunnel-hakurei = {
|
||||||
|
|
@ -31,6 +33,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.access = {
|
||||||
|
plex.url = let
|
||||||
|
system = access.systemFor "mediabox";
|
||||||
|
in "http://${system.networking.access.hostnameForNetwork.local}:32400";
|
||||||
|
};
|
||||||
|
|
||||||
systemd.network.networks.eth0 = {
|
systemd.network.networks.eth0 = {
|
||||||
name = "eth0";
|
name = "eth0";
|
||||||
matchConfig = {
|
matchConfig = {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
default = "http_status:404";
|
default = "http_status:404";
|
||||||
credentialsFile = config.sops.secrets.cloudflare_mediabox_tunnel.path;
|
credentialsFile = config.sops.secrets.cloudflare_mediabox_tunnel.path;
|
||||||
ingress = {
|
ingress = {
|
||||||
"plex.gensokyo.zone".service = "http://localhost:32400";
|
|
||||||
"tautulli.gensokyo.zone".service = "http://localhost:${toString config.services.tautulli.port}";
|
"tautulli.gensokyo.zone".service = "http://localhost:${toString config.services.tautulli.port}";
|
||||||
"ombi.gensokyo.zone".service = "http://localhost:${toString config.services.ombi.port}";
|
"ombi.gensokyo.zone".service = "http://localhost:${toString config.services.ombi.port}";
|
||||||
"sonarr.gensokyo.zone".service = "http://localhost:8989";
|
"sonarr.gensokyo.zone".service = "http://localhost:8989";
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ module "mediabox" {
|
||||||
zone_id = cloudflare_zone.gensokyo-zone_zone.id
|
zone_id = cloudflare_zone.gensokyo-zone_zone.id
|
||||||
subdomains = [
|
subdomains = [
|
||||||
"deluge",
|
"deluge",
|
||||||
"plex",
|
|
||||||
"sonarr",
|
"sonarr",
|
||||||
"radarr",
|
"radarr",
|
||||||
"jackett",
|
"jackett",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue