fix pinchflat
This commit is contained in:
parent
db6d5161ff
commit
1a969dfd17
3 changed files with 29 additions and 13 deletions
|
@ -9,6 +9,9 @@
|
|||
port = 8945;
|
||||
selfhosted = true;
|
||||
mediaDir = "/drives/wd10/pinchflat/media";
|
||||
extraConfig = {
|
||||
YT_DLP_WORKER_CONCURRENCY = 1;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.pinchflat.isSystemUser = true;
|
||||
|
@ -25,20 +28,33 @@
|
|||
enable = true;
|
||||
vpnnamespace = "wg";
|
||||
};
|
||||
vpnNamespaces.wg.portMappings = [
|
||||
{
|
||||
from = 8945;
|
||||
to = 8945;
|
||||
}
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d '/drives/wd10/pinchflat/media' 0775 pinchflat pinchflat - -"
|
||||
];
|
||||
|
||||
# services.nginx = {
|
||||
# virtualHosts = {
|
||||
# "yt.joshuabell.xyz" = {
|
||||
# locations."/" = {
|
||||
# proxyWebsockets = true;
|
||||
# proxyPass = "http://localhost:8945";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"pinchflat" = {
|
||||
serverName = "h001.net.joshuabell.xyz";
|
||||
listen = [
|
||||
{
|
||||
port = 8945;
|
||||
addr = "0.0.0.0";
|
||||
}
|
||||
];
|
||||
locations."/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://192.168.15.1:8945";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ let
|
|||
in
|
||||
{
|
||||
services.nginx.virtualHosts = {
|
||||
"10.12.14.2" = {
|
||||
"10.12.14.10" = {
|
||||
locations = {
|
||||
"/" = {
|
||||
return = "301 http://h001.local.joshuabell.xyz";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue