feat: fw some changes
This commit is contained in:
@@ -9,13 +9,18 @@
|
|||||||
passwordFile = config.sops.secrets.ddclient.path;
|
passwordFile = config.sops.secrets.ddclient.path;
|
||||||
zone = "cloonar.com";
|
zone = "cloonar.com";
|
||||||
domains = [
|
domains = [
|
||||||
"fw.cloonar.com"
|
"audiobooks.cloonar.com"
|
||||||
"vpn.cloonar.com"
|
|
||||||
"git.cloonar.com"
|
|
||||||
"palworld.cloonar.com"
|
|
||||||
"matrix.cloonar.com"
|
|
||||||
"element.cloonar.com"
|
"element.cloonar.com"
|
||||||
"tinder.cloonar.com"
|
"foundry-vtt.cloonar.com"
|
||||||
|
"foundry-ha.cloonar.com"
|
||||||
|
"fw.cloonar.com"
|
||||||
|
"git.cloonar.com"
|
||||||
|
"jellyfin.cloonar.com"
|
||||||
|
"matrix.cloonar.com"
|
||||||
|
"palworld.cloonar.com"
|
||||||
|
"support.cloonar.com"
|
||||||
|
"sync.cloonar.com"
|
||||||
|
"vpn.cloonar.com"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,7 @@
|
|||||||
# multimedia
|
# multimedia
|
||||||
"/dl.cloonar.com/${config.networkPrefix}.97.5"
|
"/dl.cloonar.com/${config.networkPrefix}.97.5"
|
||||||
"/jellyfin.cloonar.com/${config.networkPrefix}.97.5"
|
"/jellyfin.cloonar.com/${config.networkPrefix}.97.5"
|
||||||
|
"/audiobooks.cloonar.com/${config.networkPrefix}.97.5"
|
||||||
|
|
||||||
"/deconz.cloonar.multimedia/${config.networkPrefix}.97.22"
|
"/deconz.cloonar.multimedia/${config.networkPrefix}.97.22"
|
||||||
|
|
||||||
|
|||||||
@@ -57,15 +57,6 @@
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
acmeRoot = null;
|
acmeRoot = null;
|
||||||
|
|
||||||
# Restrict to internal LAN only
|
|
||||||
extraConfig = ''
|
|
||||||
allow ${config.networkPrefix}.96.0/24;
|
|
||||||
allow ${config.networkPrefix}.97.0/24;
|
|
||||||
allow ${config.networkPrefix}.98.0/24;
|
|
||||||
allow ${config.networkPrefix}.99.0/24;
|
|
||||||
deny all;
|
|
||||||
'';
|
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${config.networkPrefix}.97.11:8096";
|
proxyPass = "http://${config.networkPrefix}.97.11:8096";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
@@ -82,4 +73,25 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."audiobooks.cloonar.com" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
acmeRoot = null;
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${config.networkPrefix}.97.11:13378";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
|
||||||
|
# Disable buffering for better streaming performance
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user