Skip to content

Commit

Permalink
Merge pull request #1 from mauritzs/nginx_setup_update_jolan
Browse files Browse the repository at this point in the history
Updated nginx runner setup following Exercise requirements
  • Loading branch information
mauritzs authored and GitHub Enterprise committed Mar 13, 2025
2 parents 947fadd + de49f3e commit 97c6e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
- name: Replace environment variables in Nginx config
run: |
envsubst '${DEV_PORT_PREFIX} ${PROD_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > nginx_secfit.conf
envsubst '${DEV_PORT_PREFIX} ${PROD_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > ./nginx_securefit.conf
- name: Copy variables to conf file
run: |
sudo cp nginx_secfit.conf /etc/nginx/conf.d/nginx.conf
sudo cp ./nginx_securefit.conf /etc/nginx/conf.d/nginx.conf
- name: Test setup
run: |
Expand All @@ -49,4 +49,4 @@ jobs:
# Restarting nginx service
- name: Restart nginx service
run: |
sudo systemctl restart nginx
sudo systemctl reload nginx
File renamed without changes.

0 comments on commit 97c6e61

Please sign in to comment.