From 818ae41e58b26f6e380816d7d6d35a021a8dffe9 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 6 Dec 2024 09:45:52 +0100 Subject: [PATCH] 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. --- systems/x86_64-linux/sgx/nginx.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/x86_64-linux/sgx/nginx.nix b/systems/x86_64-linux/sgx/nginx.nix index 9c5c40e..c8854f5 100644 --- a/systems/x86_64-linux/sgx/nginx.nix +++ b/systems/x86_64-linux/sgx/nginx.nix @@ -21,7 +21,7 @@ useACMEHost = "internal.hoyer.world"; forceSSL = true; locations."/" = { - proxyPass = "http://127.0.0.1:${config.services.open-webui.port}"; + proxyPass = "http://127.0.0.1:${toString config.services.open-webui.port}"; }; }; };