File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -12,3 +12,19 @@ server {
1212 }
1313}
1414
15+ server {
16+ listen % ip% :% proxy_ssl_port% ssl http2;
17+ server_name _;
18+ ssl_certificate /usr/local/hestia/ssl/certificate.crt;
19+ ssl_certificate_key /usr/local/hestia/ssl/certificate.key;
20+
21+ return 301 http://$host $request_uri ;
22+
23+ location / {
24+ root /var/www/document_errors/;
25+ }
26+
27+ location /error/ {
28+ alias /var/www/document_errors/;
29+ }
30+ }
Original file line number Diff line number Diff line change 55# ######################################################################################
66# ###### Place additional commands below. #######
77# ######################################################################################
8+
9+ # Add default SSL Certificate config when ip is visited
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
You can’t perform that action at this time.
0 commit comments