exoframe icon indicating copy to clipboard operation
exoframe copied to clipboard

Add way to enable traefik dashboard

Open RegEM opened this issue 7 years ago • 5 comments
trafficstars

Hi Tim,

Trying to move forward on my AWS installation. Trying to understand the port 8080 useage in the exoframe architecture, as well as troubleshoot why my install is not working.

My understanding is that the default port for the traefik dashboard is on port 8080. Did you have the dashboard working, prior to or within an AWS swarm?

I see I can move the port by adding 'traefikArgs: [--api=true --api.entryPoint=api --entryPoints='Name:api Address::8686']' to the server.config.yml file. I see in the logs some dashboard website type config, that I didn't have previous to the change.

But then I get a failure on the exoframe deploy. Tried changing the 8080 in the exoframe config, but didn't help.

RegEM avatar May 29 '18 01:05 RegEM

@RegEM by default, traefik dashboard is turned off and, as you correctly noted, it needs to be turned on via additional flags. The thing here is - in addition to those flags you'll need to provide additional docker settings (e.g. port bindings, or labels for admin UI, etc) - which is currently not possible. It should be relatively easy to add though 🤔

yamalight avatar May 29 '18 11:05 yamalight

Changing this to a feature issue, will implement later on. PRs welcome as usual :)

yamalight avatar May 29 '18 11:05 yamalight

I suppose this can be closed by adding an example

FDiskas avatar Apr 25 '20 13:04 FDiskas

On one hand - yes, pretty much. On other hand - would be nice to have a simple flag that would flip it on (since it does take quite a few labels to make it work) 🤔

yamalight avatar Apr 27 '20 11:04 yamalight

Add labels to docker command:

--label traefik.http.routers.api.rule=Host(\`traefik.exoframe.your-host.com\`) \
--label traefik.http.routers.api.service=api@internal \

Add setting to exoframe/server.config.yml

traefikArgs: ['--api', '--api.dashboard', '--api.insecure']

This also probably be under passwrord - more info here: https://docs.traefik.io/operations/api/#configuration

Added this answer as a reference

FDiskas avatar Apr 27 '20 18:04 FDiskas

Hi. I've forgotten why/how I was trying to use exoframe in my project. Still, It's cool that you've closed the issue after all this time. fwiw, I see in another issue, a comment re: possibly needing to wrap 'true' in double quotes. And I see I have 'true' in my issue. This is for configuring traefik in nixos. https://github.com/NixOS/nixpkgs/issues/265496 Cheers

RegEM avatar Dec 06 '23 15:12 RegEM

@RegEM I have tested the config I've described in docs to make sure it works, so quotes don't seem to matter that much (unless I misunderstand the point) 🤔

yamalight avatar Dec 06 '23 15:12 yamalight

I notice you had this Caveat. I guess it's not relevant.

Caveat: Adding the aforementioned labels to Traefik itself does not seem to work for some reason. It is recommended to add them to the Exoframe Server or any other deployments you have.

RegEM avatar Dec 06 '23 15:12 RegEM