Skip to content

Commit 5d15006

Browse files
author
hubert
committed
chore: replace nginx server directory
1 parent 24be8e6 commit 5d15006

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/deploy-hw.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ jobs:
134134
find: "example.com"
135135
replace: "${{ vars.DOMAIN}}"
136136
regex: false
137+
- name: Replace nginx server directory in nginx conf file
138+
uses: jacobtomlinson/gha-find-replace@v3
139+
with:
140+
include: "nginx.conf"
141+
find: "/etc/nginx"
142+
replace: "${{ vars.HW_NGINX_SERVER_DIR}}"
143+
regex: false
137144
- name: Copy nginx conf file to server
138145
uses: appleboy/[email protected]
139146
with:

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@
9797
# common error page config
9898
error_page 500 502 503 504 /50x.html;
9999
location = /50x.html {
100-
root /usr/share/nginx/html;
100+
root /etc/nginx/html;
101101
}
102102
}

0 commit comments

Comments
 (0)