diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index a3477d9..55b9ede 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -34,11 +34,11 @@ 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: | - 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