Title here
Summary here
roji can serve static files directly without Docker containers, using the static_sites section in the config file.
Add entries to ~/.config/roji/config.yaml:
static_sites:
- host: docs # -> docs.dev.localhost
root: ~/projects/docs/build
# index: true # Directory listing (default: enabled)
- host: private.example.com # FQDN (dot in hostname)
root: /var/www/private
index: false # Disable directory listing{host}.{ROJI_DOMAIN} (e.g., docs becomes docs.dev.localhost)index: true (default) — Shows an Apache/nginx-style directory listing when no index.html is foundindex: false — Returns 403 Forbidden for directory access without index.htmlNo restart needed. Use either:
roji config reloadOr click the Reload Config button on the dashboard.
Protect static sites with Basic Authentication:
static_sites:
- host: docs.dev.localhost
root: ~/projects/docs/build
auth:
basic:
user: admin
pass: secret
realm: Documentation # optionalSee the Basic Authentication guide for more details.
Static sites appear on the dashboard alongside Docker-based routes. The dashboard shows: