ms-jpq / simple-traefik-identity

Simple & Configurable -- single sign-on auth, for Traefik.
22 stars 0 forks source link

Documentation on how to use #2

Open smartexpert opened 4 years ago

smartexpert commented 4 years ago

Great project!

I'm trying to use the example provided to run the docker container. I commented out the base_domain and added my specific sub domain that I want to put behind auth. Also ensure that my container is running on the same docker network as treafik2. I'm unsure how to use this, probably missing some basics. Is there any guiding resources I can refer to set this up? Happy the help with documentation.

ms-jpq commented 4 years ago

Hi there, can you please post your config file?

The network topology should be such that Traefik can ping STI. Other than that, you just need to add STI as a forward auth middleware to Traefik.

You should probably start out with modifying this file, to get started.

It has all the defaults pretty good.

OH, and I should also mention that, you need to add the middleware to all your Traefik endpoints that needs authorization.