diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 7b87c47..776d260 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -1,4 +1,4 @@ -name: FINISHED and edited - setup nginx from the configuration file +name: Setup nginx from the configuration file on: workflow_dispatch: jobs: @@ -16,20 +16,16 @@ jobs: - name: Check environment variables run: env -########## ja + - name: Create temporary nginx config file run: envsubst '${DEV_PORT_PREFIX}, ${STAG_PORT_PREFIX}, ${PROD_PORT_PREFIX}, ${GATEWAY_POSTFIX},' < ./nginx_template.txt > temp_default.conf - #run: envsubst '$REPLACE_ME $ANOTHER_VAR' < ./nginx_template.txt > temp_default.conf - name: Copy temporary file to correct place - run: sudo cp temp_default.conf /etc/nginx/conf.d/default.conf + run: sudo cp temp_default.conf /etc/nginx/conf.d/nginx_securefit.conf #added sudo here - name: Show nginx file - run: cat /etc/nginx/conf.d/default.conf - - # - name: Test NGINX Configuration - # run: sudo nginx -t + run: cat /etc/nginx/conf.d/nginx_securefit.conf - name: Restart NGINX run: sudo systemctl reload nginx