Skip to content

Commit 24df384

Browse files
committed
Add %proxy_ssl_port% variable + add upgrade script
1 parent 2b4d350 commit 24df384

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

bin/v-add-sys-ip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
147147
sed -e "s/%ip%/$ip/g" \
148148
-e "s/%web_port%/$WEB_PORT/g" \
149149
-e "s/%proxy_port%/$PROXY_PORT/g" \
150+
-e "s/%proxy_ssl_port%/$PROXY_SSL_PORT/g" \
150151
> /etc/$PROXY_SYSTEM/conf.d/$ip.conf
151152

152153
# mod_extract_forwarded

install/upgrade/versions/1.3.0.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@
55
#######################################################################################
66
####### Place additional commands below. #######
77
#######################################################################################
8+
9+
# Add default SSL Certificate config when ip is visisted
10+
if [ "$PROXY_SYSTEM" = "nginx" ]; then
11+
echo "[ ! ] Update IP.conf"
12+
while read IP; do
13+
rm /etc/nginx/conf.d/$IP.conf
14+
cat $WEBTPL/$PROXY_SYSTEM/proxy_ip.tpl |\
15+
sed -e "s/%ip%/$IP/g" \
16+
-e "s/%web_port%/$WEB_PORT/g" \
17+
-e "s/%proxy_port%/$PROXY_PORT/g" \
18+
-e "s/%proxy_ssl_port%/$PROXY_SSL_PORT/g" \
19+
> /etc/$PROXY_SYSTEM/conf.d/$IP.conf
20+
done < <(ls $HESTIA/data/ips/)
21+
fi

0 commit comments

Comments
 (0)