From da64776fc8508bac9aae852d6ebde7f453ea31a6 Mon Sep 17 00:00:00 2001 From: szucsitg <32290917+szucsitg@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:17:43 +0200 Subject: [PATCH] fix(nginx): link nginx.conf to dataDir (#173) --- nix/nginx.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/nginx.nix b/nix/nginx.nix index 9899826a..0f1be3d6 100644 --- a/nix/nginx.nix +++ b/nix/nginx.nix @@ -100,7 +100,8 @@ in if [[ ! -d "${config.dataDir}" ]]; then mkdir -p "${config.dataDir}" fi - nginx -p "$(pwd)" -c ${config.configFile} -e /dev/stderr + ln -sfn ${config.configFile} "${config.dataDir}/nginx.conf" + nginx -p "$(pwd)" -c "${config.dataDir}/nginx.conf" -e /dev/stderr ''; }; in