diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 441f945..f8db3f7 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -1,4 +1,4 @@ -name: Setup Nginx from Configuration File +name: Setup Nginx from Configuration Files on: workflow_dispatch: @@ -21,11 +21,15 @@ jobs: run: | envsubst '\$GROUP_ID \$DOMAIN \$URL_PREFIX \$PORT_PREFIX \$DEV_POSTFIX \$STAG_POSTFIX \$PROD_POSTFIX \$BACKEND_POSTFIX \$FRONTEND_POSTFIX \$GATEWAY_POSTFIX' < ./nginx_template.txt > temp_default.conf - - name: Copy Nginx config to correct place - run: sudo cp temp_default.conf /etc/nginx/conf.d/default.conf + - name: Copy Nginx config files + run: | + sudo cp temp_default.conf /etc/nginx/conf.d/default.conf + sudo cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf - - name: Show Nginx config - run: cat /etc/nginx/conf.d/default.conf + - name: Show Nginx config files + run: | + cat /etc/nginx/conf.d/default.conf + cat /etc/nginx/conf.d/nginx_securefit.conf - name: Reload Nginx run: sudo systemctl reload nginx