SYSTEM INFORMATION | |
---|---|
OS type and version | AlmaLinux 9.5 |
Webmin version | 2.202 |
I’ve setup NGINX Proxy Manager (the gui version https://nginxproxymanager.com/). I’ve also read the faq on setting up a reverse proxy and for the most part everything works. I’ll describe my network setup below - im not giving my real ip addresses for obvious reasons. Just want to point out that this is not a homelab but I PLAN to host various projects, dev and production (Im a software developer)
Here is my network setup in case you need to understand how everything is put together
Bare metal server from Hetzner with two ip addresses 49.11.44.6 and 49.11.44.19
I have a proxmox hypervisor setup for all my vms and containers and an opnsense firewall for port forwarding everything else sits on 192.168.1.xx
Proxmox uses 49.11.44.19 and my WAN is 49.11.44.6 and NGINX sits seperately in its own container (lxc) and handles all the http/https traffic.
Issues: First issue was setting up Webmin behind a proxy. Most everything works well except the usermin/webmin port redirects. NGINX proxy manager handles the Lets encrypt part and stores the certificates on its own container 192.168.1.103 while my webmin sits on 192.168.1.120.
There is no need for me to use the virtualmin le certificates (wil that be a problem?) and if so can I turn it off (server templates? or do I have to go into the config?). Everytime I setup a website it tries to create the cert - don’t need this anymore.
The other issue is NGINX doesn’t like the 10000 and 20000 port redirects - certs don’t work and I can’t log in because it says insecure/not trusted and password fails on http. To overcome this I created usermin.domain.com in nginx that points to 20000. That allows me to log in but won’t load emails- to overcome this I went into usermin configuration and added the new domain to Trusted referrers. BUT when logging in on usermin it automatically redirects to :20000 after successful login — Can I turn this off? I already have a domain pointing to 20000 so would like to prevent this redirect -how and where to disable?
Now referring to the faq here: FAQs | Webmin
How to handle the certs in the HostBlock? Is it necessay to create a host block for this configuration?