Hi I am using Rancher and have downloaded the helm chart of Traefik. It works great for Letsencrypt and redirecting traffic to my containers.
I have a container that I would like to protect using Traefik.
I tried to put a label of my middleware basic auth in labels as the documentation says with my htpasswd hashes in rancher but it is erroring out sayiing that it is has invalid characters.
If i chose to put it in annotations it doesnt error and i can save....but when i go to my application that i am trying to protect it doesnt do anything.
I am new to Traefik so I feel that i am missing something... Any help to get this done would be appreciated.
Hi, a bit of the configuration you've done wouldn't be too much to understand your problem in my opinion.
For example my configuration of docker rutorrent behind traefik with BasicAuth :
##################### rutorrent.yml ############################
http:
services:
rutorrent:
loadBalancer:
servers:
- url: "http://rutorrent:8080"
routers:
rutorrent:
rule: "Host(`domain.tld`) && PathPrefix(`/rutorrent`)"
entryPoints:
- "web"
middlewares:
- "redirect-to-https@file"
service: "rutorrent@file"
rutorrent-secure:
rule: "Host(`domain.tld`) && PathPrefix(`/rutorrent`)"
entryPoints:
- "websecure"
middlewares:
- "hsts@file"
- "security@file"
- "compression@file"
- "strip-rutorrent@file"
- "auth@file"
service: "rutorrent@file"
tls:
certResolver: letsencrypt-ecdsa
middlewares:
strip-rutorrent:
stripPrefix:
prefixes:
- "/rutorrent"
auth:
basicAuth:
users:
- "USER:$apr1$AMYCuVOj$QM3gln42/7zJPgKvLf29/1" # code is obstrufied here
Regard