Hi,
I run Traefik2 with docker compose on a Debian Machine. I have a Unifi network at home and I've got some friends and family who have their AP's in my controller too. I was wondering how i could setup AP adoption in Traefik.
I access the AP's through SSH and I have to enter an URL to make them search for my controller. The syntax is http://myIP:8080/inform
But how do I do this in Traefik? Because the AP's work with HTTP instead of HTTPS, I have to send them to a specific port and on top of that it needs a prefix* too.
It probably could be something like adopt.example.com, and I hope this way makes it possible for the other locations to find my controller too.
I guess I have to work with a loadbalancer, a new entrypoint and an pathprefix, but I don't know how to set it up. Does anyone have an idea?
*Or suffix, I don't know the difference
You have a controller software running on your home server and want external clients to connect?
Traefik is a reverse proxy, so it can forward http requests to various services depending on hostname, port and path.
Either Traefik (or your application directly) needs to be accessible by an external IP and port, so you have to do port forwarding to Traefik or your app. Traefik could add a layer of TLS/SSL and user/pass auth on top if the client supports it.
In general you should secure your communication, I would not use plain http over the Internet without TLS or VPN for critical things like your infrastructure.
I've already got traefik running with a docker compose, i was just wondering how to set this all up. I used the guides on smarthomebeginner.com.
I think Traefik is set up to redirect all traffic to https, so i wouldn't know how to send traffic to http. I think it goes something like this in my rules folder:
http:
routers:
unifi-rtr:
rule: "Host(`adopt.{{env "DOMAINNAME_CLOUD_SERVER"}}`)" # will only work with cloudflare Full SSL (not Strict)
entryPoints:
- http
middlewares:
- chain-authelia
service: unifi-svc
tls:
certResolver: dns-cloudflare
services:
unifi-svc:
loadBalancer:
passHostHeader: true
servers:
- address: "https://192.168.10.10:8080" # or whatever your external host's IP:port is
But how can I add /inform to the end?
Hi , did you get this solved ? I'm running into a similar issue.