Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx custom proxy (feature request) #1453

Open
vontainment opened this issue Dec 11, 2020 · 28 comments
Open

Nginx custom proxy (feature request) #1453

vontainment opened this issue Dec 11, 2020 · 28 comments
Labels
feature New feature or request interface Issues related to the interface and backend admin web Issues related to web components

Comments

@vontainment
Copy link

It would be nice if in the GUI for domains could select and option to just run a Nginx Proxy. No apache virtual host made, no php, and with an option to specify and ip-port combo. Currently to do this, I've had to just create a blank apache file and hard write the IP and port in a tpl and stpl files.

@ManuelReschke
Copy link
Contributor

Just install only nginx and create a custom template for that. Done

@theotherpeople
Copy link

I agree. It is useful for playing with docker or LXC.

@vontainment
Copy link
Author

Yes but if you are hosting a site with apache-nginx and you have an external or internal service you want to proxy this would be convenient.

@vontainment
Copy link
Author

Basically you just need a no apache option and a field to set the templates IP variable

@jaapmarcus
Copy link
Member

Also to combine with...

https://forum.hestiacp.com/t/redirect-url-of-a-domain/2315/3

@jaapmarcus jaapmarcus added the feature New feature or request label Dec 17, 2020
@vontainment
Copy link
Author

It also need the option to change the port number. To be able to set the IP and port for both HTTP and https. Only because sometimes you don't have the option of both when proxying something. And so you have to proxy to Port 80 under the https template. And then you basically have SSL termination

@jaapmarcus
Copy link
Member

Probally need have multiple options:

  1. Same server different port -> NodeJS for example
  2. SSL termination
  3. Different server same ports / different ports
  4. 302 / 301 redirect

Al options are possible only a lot of work to implement them al...

@vontainment
Copy link
Author

vontainment commented Dec 23, 2020

It should be basic. That's what templates are fore. Asking as we can set the IP and port used in the templates proxy section we could create reusable templates. I regularly set up proxies for the same 10 services for clients. So in situations like that it be nice. Or ppl can share templates and you can set it for your up situation

@vontainment
Copy link
Author

Probally need have multiple options:

  1. Same server different port -> NodeJS for example
  2. SSL termination
  3. Different server same ports / different ports
  4. 302 / 301 redirect

Al options are possible only a lot of work to implement them al...

SSL Termination should not be needed. If Nginx is set for ssl but the connecting server is not or is set to connect by http it will terminate itself. Or maybe just a custom conf option like you checkmark the box and hestia creates a default template that you can then edit like the system configs do.

@Kudja
Copy link

Kudja commented Sep 6, 2021

Agree, nice to have future for different cases

  • docker
  • nodejs
  • java app's
    ...

Related to options 1 and 3 can be added just as text field and then user able to put here direct string like http://domain.com:8090/ as example

@xeruf
Copy link
Contributor

xeruf commented May 9, 2022

templates have a port variable, but I don't know how it's supposed to be set?
https://docs.hestiacp.com/admin_docs/web.html#available-variables

@jaapmarcus
Copy link
Member

Those are for nginx port server. You really don't want to change that...

We need to add an custom port and it should be quite easy. How ever we need to find a beter way so we can implement new "features" easier in the future

@liamgibbins
Copy link

This would be an owesome option to have, I have my cctv, nextcloud and my solarpv monitoring server all on different ports, this would make it so much easier for people wanting to use this already awesome panel either private like me or commercial like others do.

@Scan4u
Copy link

Scan4u commented May 25, 2022

Just found this topic - and totally agree with this feature request.
I have the running Hestia server with home webpage (Apache+nginx + Lets encrypt SSL + HTTPS redirection and HSTS enabled).
Additionally running a few Docker images.. And it is a big problem to get those docker images to work with enabled HSTS on https. Got the error. For example - here is a result for Rapid Dashboard on Docker - it use the default port 9660:
изображение

@0spinboson
Copy link

would also love to have this.

@MajorTomDE
Copy link

I also look forward to have an direct configuration of ports in hestiaCP GUI. This would make configuration, eg with docker containers, so much easier.

@liamgibbins
Copy link

I am currently running nginx proxy manager infront of hestiacp, it would be awesome to have this feature built in to hestiacp

@MajorTomDE
Copy link

The greatest solution would be to have the options like in Nginx Proxy Manager. So Hestia should provide besides the classic forwarding options for domains und subdomains also the possibility to configure a port target + SSL certificate.

So we can easly configure e.g. docker apps.

nginx

@djlongy
Copy link

djlongy commented Oct 25, 2022

I am currently running nginx proxy manager infront of hestiacp, it would be awesome to have this feature built in to hestiacp

Are you running NPM on the same box as hestiacp and intercepting all 443 traffic? Or an entirely different machine in front of it?

@liamgibbins
Copy link

liamgibbins commented Oct 25, 2022 via email

@davidspring
Copy link

I too would like this feature for the reasons explained in issue 1997 – which is a duplicate of this issue 1453.

@Asellsus
Copy link

At the moment i'm exactly at the point where i need this feature. I really don't know how to forward a created domain to ip:port

@jaapmarcus
Copy link
Member

I am working on a feature request for it:

@jakobbouchard jakobbouchard added web Issues related to web components interface Issues related to the interface and backend admin labels Mar 7, 2023
@xeruf
Copy link
Contributor

xeruf commented Apr 4, 2023

If we all need it, maybe it's time to compile a bountysource :)

As a temporary workaround I copied the default templates to a template with the port and edited the proxy port by hand in the templates, making it at least reusable for services running on the same ports.

@MajorTomDE
Copy link

@jaapmarcus That would be great. Making docker apps running as subdomain (mydomain.com:1234 >>> app1.mydomain.com) is currently my biggest pain point with HestiaCP.
Sure, templates are possible but sometimes it’s so complicated. A web interface like nginx proxy manager would be great.

@dan-atyp
Copy link

This would be an extremely useful feature.
To be able to forward to an arbitrary IP and port with NGINX and to utilise Hestia's existing SSL features would be excellent.

@Finallf
Copy link

Finallf commented Feb 13, 2024

Another one who arrived at the time of needing something like this, I come from ISPconfig and Sentora, where I used NPM in front of them.
As I changed my entire web stack from ISPConfig/Sentora to HestiaCP, it would be wonderful to have something to not need to use NPM, since HestiaCP already has NGINX, I believe you can do something like NPM.

@howard868
Copy link

I also need this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request interface Issues related to the interface and backend admin web Issues related to web components
Projects
None yet
Development

No branches or pull requests