Hello,
when setting up a new Traefik instance (dashboard access), I've always just pasted in what worked the first time and haven't given it much thought (i.e. the following router).
traefik-dashboard:
entryPoints: ["https"]
rule: "Host(`traefik.domain.com`)"
tls: {}
service: api@internal
Now I'm wondering, though, there are two internal services that confuse me - the api@internal and dashboard@internal. My thought process is that the API service would be used for the HTTP API and the dashboard one to display the dashboard. When I change out the api@internal for dashboard@internal, I get the application but no data. The AJAX requests it's making are directed to the current URL with the API endpoint appended, but the API is no longer being served at /api.
So, let's say I wanted to have the dashboard at traefik.domain.com and the API at api.traefik.domain.com (usage -> api.traefik.domain.com/entrypoints). How would one achieve that?
Note that I never actually used the API and I don't think I ever will. This is more of a hypothetical question as I want to understand Traefik beyond an "I'm able to add a router" knowledge.
Thank you