How to configure basic auth with Traefik in HCS
Basic Auth
A guide to configure basic auth with Traefik in HCS.
The configuration is slightly different for Standard Applications
and Docker Compose
based applications/one-click services.
All you need to do is to set custom labels on your application.
Standard Applications
In the example above, we are using test
as username and test
as password.
Docker Compose based Applications & one-click Services
You only need to add the basicauth middleware.
In the example above, we are using test
as username and test
as password.
Enable Escape special characters in labels?
when applying basic auth labels.
How to generate user/password?
You need to set your username and password in the basicauth.users
label.
You can generate one with the htpasswd command:
Last updated