fix: port is an integer

This commit is contained in:
Noah Masur 2023-08-05 01:20:38 +00:00
parent 21794891e7
commit 3cff7e090c
2 changed files with 9 additions and 4 deletions

View File

@ -30,8 +30,11 @@ in {
match = [{ host = [ config.hostnames.books ]; }];
handle = [{
handler = "reverse_proxy";
upstreams =
[{ dial = "localhost:${config.services.calibre-web.listen.port}"; }];
upstreams = [{
dial = "localhost:${
builtins.toString config.services.calibre-web.listen.port
}";
}];
headers.request.add."X-Script-Name" = [ "/calibre-web" ];
}];
}];

View File

@ -774,8 +774,10 @@ in {
{
matcher = {
id = "byName";
options =
"localhost:${config.services.calibre-web.listen.port}";
options = "localhost:${
builtins.toString
config.services.calibre-web.listen.port
}";
};
properties = [
{