From 26644da8819445529c20d177ca4a1f1fdf2c6722 Mon Sep 17 00:00:00 2001 From: Jolan Date: Tue, 4 Mar 2025 15:22:41 +0100 Subject: [PATCH 1/2] fix: changed file name and last cmd nginx config to match exercises requirements --- .github/workflows/update_primary_nginx.yml | 4 ++-- nginx_secfit.conf => nginx_securefit.conf | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename nginx_secfit.conf => nginx_securefit.conf (100%) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index a3477d9..6758242 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -38,7 +38,7 @@ jobs: - name: Copy variables to conf file run: | - sudo cp nginx_secfit.conf /etc/nginx/conf.d/nginx.conf + sudo cp ./nginx_securefit.conf /etc/nginx/conf.d/nginx.conf - name: Test setup run: | @@ -47,4 +47,4 @@ jobs: # Restarting nginx service - name: Restart nginx service run: | - sudo systemctl restart nginx + sudo systemctl reload nginx diff --git a/nginx_secfit.conf b/nginx_securefit.conf similarity index 100% rename from nginx_secfit.conf rename to nginx_securefit.conf From de49f3e1f230c45461650ab2bea99600201df541 Mon Sep 17 00:00:00 2001 From: Jolan Date: Tue, 4 Mar 2025 15:25:15 +0100 Subject: [PATCH 2/2] fix --- .github/workflows/update_primary_nginx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 6758242..55b9ede 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -34,7 +34,7 @@ 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 + envsubst '${DEV_PORT_PREFIX} ${PROD_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > ./nginx_securefit.conf - name: Copy variables to conf file run: |