try to proxy kavita and fail

This commit is contained in:
Kopatz
2023-11-14 16:26:24 +01:00
parent 719b48e8a5
commit 210d57e8da
2 changed files with 17 additions and 0 deletions

View File

@@ -14,4 +14,18 @@
dataDir = "/mnt/250ssd/kavita"; dataDir = "/mnt/250ssd/kavita";
tokenKeyFile = config.age.secrets.kavita.path; tokenKeyFile = config.age.secrets.kavita.path;
}; };
#todo: base url needs new kavita version
systemd.services.kavita = {
preStart = ''
umask u=rwx,g=rx,o=
cat > "/mnt/250ssd/kavita/config/appsettings.json" <<EOF
{
"TokenKey": "$(cat ${config.age.secrets.kavita.path})",
"Port": 5000,
"BaseUrl" : "/books",
"IpAddresses": "${lib.concatStringsSep "," ["0.0.0.0" "::"]}"
}
EOF
'';
};
} }

View File

@@ -52,6 +52,9 @@
''; '';
proxyPass = "http://127.0.0.1:8080"; proxyPass = "http://127.0.0.1:8080";
}; };
#locations."~/books(.*)$" = {
# proxyPass = "http://127.0.0.1:5000";
#};
}; };
"adguard.local" = { "adguard.local" = {
locations."/".proxyPass = "http://127.0.0.1:3000"; locations."/".proxyPass = "http://127.0.0.1:3000";