fist to say: I´m new to this forum, so i hope that my post and question are good enough I hope this is the right topic.
I have been successfully running Traefik as a Docker container for a long time and I use it to successfully forward various subdomains to various containers and also external services.
So far so good. However, I would like to use a subdomain that only forwards if you are in the home network or have a VPN connection there.
backup.mydomain.com should refer to an external service (external means that it is not a Docker container, but rather integrated by a file). It works as far as I can, even with SSL. But I would like to achieve that when backup.mydomain.com is called, forwarding only takes place if the call itself comes from within the home network or if there is a VPN (which is probably the same).
I've been looking for a long time, but nothing has got me anywhere. Maybe that is not possible or not useful? I'm not sure my plan makes any sense. You are welcome to give me constructive criticism.
My plan is to reach an internal server via this subdomain without always having to enter the IP and port into my devices, but rather relax the domain. Nevertheless, only home network / VPN contact should be possible.
If you have tips, even if it is said that this is crap and does not work, I would be happy to receive your feedback.