Skip to content

Commit

Permalink
Attempted fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritzs committed Mar 3, 2025
1 parent 2f6c728 commit 6d10649
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,24 @@ jobs:
export-variables: true
keys-case: bypass

# Test the nginx configuration
- name: Test nginx configuration
run: |
sudo nginx -t
# Copying nginx configuration file to the server
- name: Deploy nginx configuration file
run: |
sudo cp ./nginx/nginx.conf /etc/nginx/conf.d/nginx.conf
sudo cp ./nginx/nginx.conf /etc/nginx/nginx.conf # Main config
sudo cp ./nginx/nginx.conf /etc/nginx/conf.d/nginx.conf # Server block (if needed)
sudo chown root:root /etc/nginx/nginx.conf
sudo chmod 644 /etc/nginx/nginx.conf
# Restarting nginx service
- name: Restart nginx service
run: |
sudo systemctl reload nginx
# Test the nginx configuration
- name: Test nginx configuration
run: |
sudo nginx -t
- name: Show deployed configuration
run: |
cat /etc/nginx/conf.d/nginx.conf

0 comments on commit 6d10649

Please sign in to comment.