fix(nginx): correct proxyPass port conversion to string

Convert the port value to a string in nginx configuration to ensure correct proxyPass functionality. This change prevents potential runtime errors when using numeric port values directly in the proxyPass directive.
This commit is contained in:
Harald Hoyer 2024-12-06 09:45:52 +01:00
parent a4791bdb4f
commit 818ae41e58

View file

@ -21,7 +21,7 @@
useACMEHost = "internal.hoyer.world"; useACMEHost = "internal.hoyer.world";
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${config.services.open-webui.port}"; proxyPass = "http://127.0.0.1:${toString config.services.open-webui.port}";
}; };
}; };
}; };