From 8a1fd3d8df8d207af3a54c8fad23f82a40aaa748 Mon Sep 17 00:00:00 2001 From: Jonathan Inge Arvesen Folland Date: Thu, 20 Mar 2025 15:40:57 +0100 Subject: [PATCH] Update update_primary_nginx.yml --- .github/workflows/update_primary_nginx.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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