File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 1515# cd $SHARED_HOST_FOLDER && git clone https://github.com/hestiacp/hestiacp.git && cd hestiacp && git checkout ..branch..
1616#
1717
18+ /*
19+ # Nginx reverse proxy config: /etc/nginx/conf.d/lxc-hestia.conf
20+ server {
21+ listen 80;
22+ server_name ~(?<lxcname>hst-.+)\.hst\.domain\.tld$;
23+ location / {
24+ set $backend_upstream "http://$lxcname:80";
25+ proxy_pass $backend_upstream;
26+ proxy_set_header Host $host;
27+ proxy_set_header X-Forwarded-For $remote_addr;
28+ }
29+ }
30+ server {
31+ listen 8083;
32+ server_name ~^(?<lxcname>hst-.+)\.hst\.domain\.tld$;
33+ location / {
34+ set $backend_upstream "https://$lxcname:8083";
35+ proxy_pass $backend_upstream;
36+ }
37+ }
38+
39+ # use lxc resolver /etc/nginx/nginx.conf
40+ # test resolver ip ex: dig +short @10.240.232.1 hst-ub1804-ngx-a2-mphp
41+ http {
42+ ...
43+ resolver 10.240.232.1 ipv6=off valid=5s;
44+ ...
45+ }
46+
47+ */
1848
1949## Uncomment and configure the following vars
2050# define('DOMAIN', 'hst.domain.tld');
4171];
4272
4373array_walk ($ containers , function (&$ element ) {
44- $ lxc_name ='hst- ' ;
74+ $ lxc_name ='hst- ' ; // hostname and lxc name prefix. Update nginx reverse proxy config after altering this value
4575 $ hst_args = HST_ARGS ;
4676
4777 $ element ['hst_installer ' ] = 'hst-install-ubuntu.sh ' ;
You can’t perform that action at this time.
0 commit comments