Properly configured AUTH_USERS environment variable for Traefik container
to use in the vert-sablier.yaml dynamic configuration via Go templating.
Changes:
- Added AUTH_USERS environment variable to proxy compose file
- Updated vert-auth middleware to use {{ env AUTH_USERS }} template
- Fixed environment syntax to use map format instead of list format
This keeps credentials secure in the .env file (not tracked in git) while
the tracked vert-sablier.yaml file only contains the template reference.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
764 B
YAML
39 lines
764 B
YAML
http:
|
|
middlewares:
|
|
sablier-vert:
|
|
plugin:
|
|
sablier:
|
|
names: vert_app
|
|
sablierUrl: http://sablier_app:10000
|
|
sessionDuration: 1h
|
|
dynamic:
|
|
displayName: VERT File Converter
|
|
theme: ghost
|
|
|
|
vert-auth:
|
|
basicAuth:
|
|
users:
|
|
- "{{ env AUTH_USERS }}"
|
|
|
|
vert-compress:
|
|
compress: {}
|
|
|
|
services:
|
|
vert-web-secure:
|
|
loadBalancer:
|
|
servers:
|
|
- url: "http://vert_app:80"
|
|
|
|
routers:
|
|
vert-web-secure:
|
|
rule: "Host(`vert.pivoine.art`)"
|
|
service: vert-web-secure
|
|
entryPoints:
|
|
- web-secure
|
|
middlewares:
|
|
- sablier-vert
|
|
- vert-auth
|
|
- vert-compress
|
|
tls:
|
|
certResolver: resolver
|