Simplify traefik config
In commit https://github.com/springcomp/self-hosted-simplelogin/commit/3471bb9842112cc2c475a1c8042e9148f5243f9, HSTS configuration is fixed/correctly enabled, but this is implemented via a "local file". This way increases the complexity of the configuration. Furthermore, HSTS is enabled via the entrypoint, which then automatically applies to all services (even other domains) on this host – this may not be desired.
This PR changes all simple-login relating traefik configuration back to labels, and fixes HSTS configuration/activation via explicitely forcing this middleware also for the subdomain.
Thank you.
I was looking for a way to simplify but am not knowledgeable enough in Traefik.
I will test this using Internet.nl and Hardenize which failed on HSTS previously.
Thank you for hinting to internet.nl and hardenize.
Using these testsuites, I could fix another bug in HSTS config - sorry.
@chrisblech thank a lot for the follow up.