From 8671b84778e365b535eb3a191b53b29ea8d4c8a2 Mon Sep 17 00:00:00 2001 From: Emil Orvik Olsson Date: Tue, 18 Mar 2025 22:30:20 +0100 Subject: [PATCH] Update update_primary_nginx.yml --- .github/workflows/update_primary_nginx.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 9733e17..e59aa96 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -20,12 +20,12 @@ jobs: run: env #Doesn't work properly, envsubst replaces all instances of $variable and ${variable}, but we want to keep e.g., $host as nginx variables - #- name: Create temporary nginx config file - # run: envsubst < ./nginx_template.txt > temp_default.conf + - name: Create temporary nginx config file + run: envsubst '$http_host, $remote_addr, $proxy_add_x_forwarded_for' < ./nginx_template.txt > temp_default.conf # Maybe look at https://www.baeldung.com/linux/envsubst-command to get an idea - name: Copy temporary file to correct place - run: cp temp_default.conf /etc/nginx/conf.d/default.conf + run: cp temp_default.conf /etc/nginx/conf.d/nginx_securefit.conf - name: Show nginx file - run: cat /etc/nginx/conf.d/default.conf + run: cat /etc/nginx/conf.d/nginx_securefit.conf