fix: pass port into owntracks-recorder config as a string, not an int
This commit is contained in:
parent
66787f06e7
commit
cac7aedbba
1 changed files with 11 additions and 9 deletions
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
# keep-sorted start
|
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
# keep-sorted end
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -18,7 +15,7 @@ in
|
||||||
${pkgs.owntracks-recorder}/bin/ot-recorder \
|
${pkgs.owntracks-recorder}/bin/ot-recorder \
|
||||||
--storage /var/lib/owntracks/recorder/store \
|
--storage /var/lib/owntracks/recorder/store \
|
||||||
--port 0
|
--port 0
|
||||||
--http-port ${lib.toInt port}
|
--http-port ${port}
|
||||||
--http-host https://${host}
|
--http-host https://${host}
|
||||||
'';
|
'';
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
|
@ -30,10 +27,15 @@ in
|
||||||
services = {
|
services = {
|
||||||
# borgbackup.jobs = owntracks { };
|
# borgbackup.jobs = owntracks { };
|
||||||
|
|
||||||
nginx.virtualHosts.${host} = {
|
nginx.virtualHosts.${host} =
|
||||||
forceSSL = true;
|
let
|
||||||
useACMEHost = "fi33.buzz";
|
owntracks-frontend = pkgs.callPackage ./owntracks-frontend.nix;
|
||||||
locations."/".proxyPass = "http://localhost:${port}";
|
in
|
||||||
};
|
{
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "fi33.buzz";
|
||||||
|
root = "/var/www/html";
|
||||||
|
locations."/owntracks/".alias = "${owntracks-frontend}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue