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 ]; }]; match = [{ host = [ config.hostnames.books ]; }];
handle = [{ handle = [{
handler = "reverse_proxy"; handler = "reverse_proxy";
upstreams = upstreams = [{
[{ dial = "localhost:${config.services.calibre-web.listen.port}"; }]; dial = "localhost:${
builtins.toString config.services.calibre-web.listen.port
}";
}];
headers.request.add."X-Script-Name" = [ "/calibre-web" ]; headers.request.add."X-Script-Name" = [ "/calibre-web" ];
}]; }];
}]; }];

View File

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