Replies: 2 comments 3 replies
|
There is no way to disable TLS in Warpgate, but you can simply let it use the automatically generated TLS certificate - you don't need trusted TLS between NGINX and its upstream on the same host. Ports are also not an issue - keep
|
|
I have one more question then. HTTP domain binding page in the docs mentions that using one specific subdomain for Warpgate and then subdomains within that subdomain for services behind it is recommended, but it should be possible to have Warpgate at one subdomain (for example Is such configuration supported? |
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I've been experimenting a bit with Warpgate today and there are a few things about the way it behaves that confuse me, I wasn't able to find answers in the documentation either so I hope someone here will be able to help me.
In my setup, I want to run Warpgate in a Docker container and then expose it to the internet behind a reverse proxy (nginx). The first part was easy, the other one not so much. I did all the usual reverse proxy settings and made sure proxy headers are configured correctly, also set
http.trust_x_forwarded_headerstotrue. But I have other issues.In this situation I don't really want to configure TLS in Warpgate – all services in my homelab have their certificates and keys set up in nginx, which integrates with Certbot without any issues – nginx loads files on startup as root, so file permissions aren't an issue.
With Warpgate it's quite the opposite. I can't manage to sucessfully mount
/etc/letsencrypt/live/.../into the container due to insufficient permissions and I'd really rather avoid manually moving and changing permissions of certificates obtained by Certbot – that mostly defeats the purpose of externally managed automatically renewed certificates.So how can I configure it to just stop being so pushy about TLS? Only unencrypted traffic happens between the container and nginx on the same server, it's really fine. It might not be ideal but it's way easier to manage the exact same way as all my other services and all the traffic outside my infrastructure is still encrypted so I wouldn't call this scenario horribly insecure 🤷
Additionally, I want Warpgate to bind to port let's say
8888(both inside the container and on host OS), but then be exposed to the internet via nginx on default HTTPS port443– which is the default behavior of every single service i'm running except Warpgate, which very stubbornly wants to only accept connections on the listening port specified in its YAML config file, regardless of reverse proxy setup.I tried setting
http.external_portto443but it didn't change anything. It's not exactly clear to me whatexternal_portconfig key is supposed to do then, the documentation about config file keys just doesn't seem to exist (or I'm really bad at looking, but I tried).Warpgate looks like exactly the kind of a service I was looking for but I wish configuration for my use-case was more straightforward and the documentation was better tbh.
Config files
./data/warpgate.yaml
./docker-compose.yaml
nginx config
All reactions