diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 9a247ce..9cccc4c 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -37,9 +37,9 @@ jobs: - name: Restore Nginx variables run: | - sed -i 's/__HTTP_HOST__/$http_host/g' temp_default.conf | \ - sed -i 's/__REMOTE_ADDR__/$remote_addr/g' | \ - sed -i 's/__PROXY_ADD_X_FORWARDED_FOR__/$proxy_add_x_forwarded_for/g' + sed -i 's/__HTTP_HOST__/$http_host/g' temp_default.conf + sed -i 's/__REMOTE_ADDR__/$remote_addr/g' temp_default.conf + sed -i 's/__PROXY_ADD_X_FORWARDED_FOR__/$proxy_add_x_forwarded_for/g' temp_default.conf - name: Copy temporary file to correct place run: cp -L temp_default.conf /etc/nginx/conf.d/default.conf