From 2c6e154e75e20e8a9b2c719d4cd6cef95e933e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauritz=20Skog=C3=B8y?= Date: Tue, 4 Mar 2025 12:37:51 +0100 Subject: [PATCH] Attempt again --- .github/workflows/update_primary_nginx.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 8c18b29..f9caae7 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -28,7 +28,13 @@ jobs: - name: Replace environment variables in Nginx config run: | envsubst '${DEV_PORT_PREFIX} ${PROD_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > nginx_secfit.conf + + - name: Copy variables to conf file + run: | sudo cp nginx_secfit.conf /etc/nginx/conf.d/nginx.conf + + - name: Test setup + run: | sudo nginx -t # Restarting nginx service