diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 63d1f64..cd23a4e 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -36,11 +36,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: | @@ -49,4 +49,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