Title here
Summary here
roji supports HTTP Basic Authentication to protect routes in your local development environment.
Add authentication to any Docker-based route:
services:
admin:
image: my-admin-panel
labels:
- "roji.auth.basic.user=admin"
- "roji.auth.basic.pass=secret"
- "roji.auth.basic.realm=Admin Area" # optional, defaults to "Restricted"
networks:
- rojiProtect static sites in ~/.config/roji/config.yaml:
static_sites:
- host: docs
root: ~/projects/docs/build
auth:
basic:
user: admin
pass: secret
realm: Documentation # optional401 Unauthorized with WWW-Authenticate header when credentials are missing or wrongOPTIONS) bypass authentication