fix pinchflat
This commit is contained in:
parent
db6d5161ff
commit
1a969dfd17
3 changed files with 29 additions and 13 deletions
|
@ -94,7 +94,7 @@ in
|
||||||
};
|
};
|
||||||
"mbptv_" = lib.mkIf (hasSecret "nix2gpdPocket3") {
|
"mbptv_" = lib.mkIf (hasSecret "nix2gpdPocket3") {
|
||||||
identityFile = age.secrets.nix2gpdPocket3.path;
|
identityFile = age.secrets.nix2gpdPocket3.path;
|
||||||
hostname = "10.12.14.101";
|
hostname = "10.12.14.30";
|
||||||
user = "waka";
|
user = "waka";
|
||||||
setEnv = {
|
setEnv = {
|
||||||
TERM = "vt100";
|
TERM = "vt100";
|
||||||
|
@ -119,7 +119,7 @@ in
|
||||||
};
|
};
|
||||||
"h001_" = lib.mkIf (hasSecret "nix2h001") {
|
"h001_" = lib.mkIf (hasSecret "nix2h001") {
|
||||||
identityFile = age.secrets.nix2h001.path;
|
identityFile = age.secrets.nix2h001.path;
|
||||||
hostname = "10.12.14.2";
|
hostname = "10.12.14.10";
|
||||||
user = "luser";
|
user = "luser";
|
||||||
};
|
};
|
||||||
"h002" = lib.mkIf (hasSecret "nix2h002") {
|
"h002" = lib.mkIf (hasSecret "nix2h002") {
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
port = 8945;
|
port = 8945;
|
||||||
selfhosted = true;
|
selfhosted = true;
|
||||||
mediaDir = "/drives/wd10/pinchflat/media";
|
mediaDir = "/drives/wd10/pinchflat/media";
|
||||||
|
extraConfig = {
|
||||||
|
YT_DLP_WORKER_CONCURRENCY = 1;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.pinchflat.isSystemUser = true;
|
users.users.pinchflat.isSystemUser = true;
|
||||||
|
@ -25,20 +28,33 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
vpnnamespace = "wg";
|
vpnnamespace = "wg";
|
||||||
};
|
};
|
||||||
|
vpnNamespaces.wg.portMappings = [
|
||||||
|
{
|
||||||
|
from = 8945;
|
||||||
|
to = 8945;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d '/drives/wd10/pinchflat/media' 0775 pinchflat pinchflat - -"
|
"d '/drives/wd10/pinchflat/media' 0775 pinchflat pinchflat - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
# services.nginx = {
|
services.nginx = {
|
||||||
# virtualHosts = {
|
virtualHosts = {
|
||||||
# "yt.joshuabell.xyz" = {
|
"pinchflat" = {
|
||||||
# locations."/" = {
|
serverName = "h001.net.joshuabell.xyz";
|
||||||
# proxyWebsockets = true;
|
listen = [
|
||||||
# proxyPass = "http://localhost:8945";
|
{
|
||||||
# };
|
port = 8945;
|
||||||
# };
|
addr = "0.0.0.0";
|
||||||
# };
|
}
|
||||||
# };
|
];
|
||||||
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://192.168.15.1:8945";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"10.12.14.2" = {
|
"10.12.14.10" = {
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
return = "301 http://h001.local.joshuabell.xyz";
|
return = "301 http://h001.local.joshuabell.xyz";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue