Bedrud ドキュメント

組み込みのインストーラーは、1つのコマンドで新規Linuxサーバーを本番環境用に設定します。

What the Installer Does

When you run bedrud install, the following happens:

Step Action
1 Creates directories: /etc/bedrud, /var/lib/bedrud, /var/log/bedrud
2 Copies binary to /usr/local/bin/bedrud
3 Generates config.yaml with your settings /etc/bedrud/config.yaml
4 Generates livekit.yaml for media server /etc/bedrud/livekit.yaml
5 Creates two systemd services: bedrud.service & livekit.service
6 Enables and starts both services
7 Initializes SQLite database and certificate cache

Systemd Services

The installer creates two systemd services:

Service Command Purpose
bedrud.service bedrud --run --config /etc/bedrud/config.yaml API + web
livekit.service bedrud --livekit --config /etc/bedrud/livekit.yaml Media server

セキュリティとTLS

インストーラーはセキュリティ設定を自動的に行います:

  • ACME (Let’s Encrypt): ドメインとメールアドレスを指定すると、自動証明書更新を設定します。
  • 自己署名証明書: ドメインが指定されていない場合、自己署名証明書を生成し、HTTPSでサイトが機能するようにします。
  • リバースプロキシ: バックエンドはリバースプロキシとして機能します。ポート443でトラフィックを受け付け、/livekitリクエストを内部メディアサーバーに転送します。

アンインストール

Bedrudを削除する必要がある場合、以下を実行します:

sudo bedrud uninstall

このコマンドはサービスを停止し、systemdファイルを削除し、設定フォルダとデータフォルダを削除します。


関連情報