We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Nginx reverse proxy for NodeJs Topic is solved
Nginx reverse proxy for NodeJs
Greetings! I was a long term user of KloxoMR, but have moved to a Ubuntu box. Vesta is very very clean. I am amazed! :-)
I have 8 domains, all running well. One of the domains must reverse proxy nodejs - not Apache. I am looking for a solution that will not get wiped or removed if I need to rebuild the web.
location / {
proxy_pass http://private_ip_address:9090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
If I change the domain file in nginx to the above, will changes persist?
Thank you and thank you for a great panel!
Chris
I have 8 domains, all running well. One of the domains must reverse proxy nodejs - not Apache. I am looking for a solution that will not get wiped or removed if I need to rebuild the web.
location / {
proxy_pass http://private_ip_address:9090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
If I change the domain file in nginx to the above, will changes persist?
Thank you and thank you for a great panel!
Chris
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Nginx reverse proxy for NodeJs
just create a template with name 'nodeJSrevproxy' with your config and place it here
You can make a copy of one of the existing templates and reuse its variables, will be easier.
Once template is made, restart vesta and choose Nginx template from WebUI for the domain.
Code: Select all
/usr/local/vesta/data/templates/web/nginx
Once template is made, restart vesta and choose Nginx template from WebUI for the domain.
Re: Nginx reverse proxy for NodeJs
That is great! Thank you very much.
I have a lot to learn about Vesta, the template system is nice.
[Edit]
I thought by seecting solved it would just mark the topic, but it marked my post. The post above is the answer :-)
I have a lot to learn about Vesta, the template system is nice.
[Edit]
I thought by seecting solved it would just mark the topic, but it marked my post. The post above is the answer :-)
Re: Nginx reverse proxy for NodeJs
Worked perfectly. Easy to undertand, stpl for ssl ,tpl normal... nice :-)
Thank you again!
Thank you again!