Skip to content

Commit 2b4d350

Browse files
committed
hestiacp#1103 Add SSL to ip.conf
1 parent 90f5e24 commit 2b4d350

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

install/deb/templates/web/nginx/proxy_ip.tpl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)