Title here
Summary here
~/.config/roji/config.yaml--config フラグで上書き、roji config path で確認可能# ~/.config/roji/config.yaml
# 監視するDockerネットワーク(複数の場合はカンマ区切り)
network: roji
# サービスホスト名のベースドメイン
# サービスは {service}.{domain} のホスト名を取得
domain: dev.localhost
# HTTPポート(すべてのリクエストをHTTPSにリダイレクト)
http_port: 80
# HTTPSポート
https_port: 443
# TLS証明書のディレクトリ(CA + サーバー証明書)
certs_dir: ~/.local/share/roji/certs
# データディレクトリ(プロジェクト履歴、ログ)
data_dir: ~/.local/share/roji
# ダッシュボードホスト名
dashboard: roji.dev.localhost
# ログレベル: debug, info, warn, error
log_level: info
# 起動時にTLS証明書を自動生成
auto_cert: true
# 静的ファイルホスティング
static_sites:
- host: docs # 短縮名 -> docs.dev.localhost
root: ~/projects/docs/build # 配信するディレクトリ
index: true # ディレクトリ一覧(デフォルト: true)
- host: private.example.com # FQDN(ドットを含む)
root: /var/www/private
index: false
auth: # BASIC認証
basic:
user: admin
pass: secret
realm: Private Area # 任意、デフォルトは "Restricted"roji config init # デフォルト設定ファイルを作成
roji config show # 現在の有効な設定を表示
roji config path # 設定ファイルの場所を表示
roji config edit # $EDITORで開くrojiは起動時に設定ファイルを検証します:
static_sites のhost、rootなどroji doctor で完全な検証レポートを確認できます。