feat(filebrowser): add Traefik basic-auth middleware
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
# Basic-auth credentials in htpasswd format (bcrypt-hashed).
|
||||||
|
# Generated with: htpasswd -nbB chemavx <password>
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: filebrowser-auth
|
||||||
|
namespace: filebrowser
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
users: |
|
||||||
|
chemavx:$2b$12$a1vb6zKuvbpvw8XWJk2ZYeAZtLGkJ.VsdOuMQhC5HmdC0cdnLzNhC
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: filebrowser-auth
|
||||||
|
namespace: filebrowser
|
||||||
|
spec:
|
||||||
|
basicAuth:
|
||||||
|
secret: filebrowser-auth
|
||||||
|
realm: "Filebrowser"
|
||||||
@@ -97,6 +97,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: filebrowser-filebrowser-auth@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user