Bedrud مستندات

The built-in installer configures a fresh Linux server for production use with a single command.

نصب‌کننده چه کاری انجام می‌دهد

وقتی bedrud install را اجرا می‌کنید، مراحل زیر انجام می‌شود:

مرحله عملیات
1 ایجاد پوشه‌ها: /etc/bedrud, /var/lib/bedrud, /var/log/bedrud
2 کپی باینری به /usr/local/bin/bedrud
3 تولید config.yaml با تنظیمات شما /etc/bedrud/config.yaml
4 تولید livekit.yaml برای سرور رسانه /etc/bedrud/livekit.yaml
5 ایجاد دو سرویس systemd: bedrud.service & livekit.service
6 فعال‌سازی و شروع هر دو سرویس
7 مقداردهی اولیه پایگاه داده SQLite و حافظه گواهی‌ها

سرویس‌های Systemd

نصب‌کننده دو سرویس systemd ایجاد می‌کند:

سرویس دستور هدف
bedrud.service bedrud --run --config /etc/bedrud/config.yaml API + وب
livekit.service bedrud --livekit --config /etc/bedrud/livekit.yaml سرور رسانه

Security and TLS

The installer handles security automatically:

  • ACME (Let’s Encrypt): If you provide a domain and email, it sets up automatic certificate renewal.
  • Self-Signed Certs: If no domain is provided, it generates a self-signed certificate so that the site still works over HTTPS. The server auto-renews the certificate daily when it’s within 30 days of expiry. Use bedrud cert renew for manual renewal.
  • Reverse Proxy: The backend acts as a reverse proxy. It receives traffic on port 443 and sends /livekit requests to the internal media server.

Updating

In-place upgrade (preserves config and database):

sudo bedrud update
# alias:
sudo bedrud upgrade

Replaces the binary with the running executable, runs versioned install migrations and DB AutoMigrate, refreshes init units, and restarts services. See Updating.

Uninstallation

If you need to remove Bedrud, you can run:

sudo bedrud uninstall

This stops the services, deletes the init service files (systemd, OpenRC, or SysV init), and removes the configuration and data folders.


See also