Skip to content

Commit d40698a

Browse files
committed
perf: update redirect
1 parent ccbf83f commit d40698a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function config_https() {
7272
config_nginx "${config_file}"
7373

7474
sed -i "s@server web:.*;@server localhost:51980;@g" "${config_file}"
75+
sed -i 's@https://$server_name$request_uri;@https://$host$request_uri;@g' "${config_file}"
7576

7677
if [ "${USE_IPV6}" == "1" ]; then
7778
sed -i "s@# listen \[::\]:443@listen \[::\]:443@g" "${config_file}"

0 commit comments

Comments
 (0)