Title here
Summary here
rojiStart the reverse proxy server.
sudo roji # Run in foreground
sudo roji --network web,api # Watch multiple networks
sudo roji --domain test.localhost # Custom domain
sudo roji --http-port 8080 --https-port 8443 # Custom ports
sudo roji --log-level debug # Verbose loggingFlags:
| Flag | Description | Default |
|---|---|---|
--network | Docker network(s) to watch | roji |
--domain | Base domain | dev.localhost |
--http-port | HTTP port | 80 |
--https-port | HTTPS port | 443 |
--certs-dir | Certificate directory | ~/.local/share/roji/certs |
--data-dir | Data directory | ~/.local/share/roji |
--dashboard | Dashboard hostname | roji.{domain} |
--log-level | Log level (debug, info, warn, error) | info |
--auto-cert | Auto-generate certificates | true |
--config | Config file path | ~/.config/roji/config.yaml |
roji doctorCheck environment and fix common issues.
roji doctor # Run all checks
roji doctor --fix # Auto-fix issues where possible
roji doctor --json # Output as JSONChecks performed:
roji configManage configuration.
roji config show # Display current settings
roji config path # Show config file locations
roji config init # Create default config file
roji config edit # Open in $EDITORroji caManage the CA certificate.
roji ca status # Check installation status
roji ca install # Install to system trust store
roji ca install --user # Install to user store (no sudo)
roji ca install --windows # Install to Windows (from WSL)
roji ca install --firefox # Also install to Firefox (Linux)
roji ca install --force # Force reinstall
roji ca uninstall # Remove from trust store
roji ca export [path] # Export CA certificate (.pem or .crt)Platform support:
| Platform | Method |
|---|---|
| macOS | Keychain (security add-trusted-cert) |
| Linux (Debian/Ubuntu) | update-ca-certificates |
| Linux (RHEL/Fedora) | update-ca-trust |
| Windows | certutil -addstore |
| WSL → Windows | certutil.exe (user store) |
roji serviceManage roji as a system service.
roji service install # Register as system service
roji service uninstall # Remove service registration
roji service start # Start the service
roji service stop # Stop the service
roji service restart # Restart the service
roji service status # Show service statusPlatform support:
| Platform | Service Manager | Config Location |
|---|---|---|
| Linux | systemd | /etc/systemd/system/roji.service |
| macOS | launchd | ~/Library/LaunchAgents/com.roji.agent.plist |
| Windows | NSSM | Windows Service |
roji logView server logs.
roji log # Follow logs in real-time (like tail -f)
roji log -n 100 # Show last 100 lines, then follow
roji log --no-follow # Print current logs and exitLog file locations:
~/.local/share/roji/roji.log~/Library/Logs/roji.logLogs are automatically rotated when they exceed 10MB.
roji routesList all registered routes from the running server.
roji versionShow version, commit hash, build date, and Go version.
roji healthCheck if the roji server is healthy. Exits with code 0 if healthy, 1 otherwise.