Skip to content

Server Setup ​

This section covers server configuration.

Storage ​

The directory mounted to /data/media has the following structure.

DirectoryDescription
dbIf using SQLite the database file is stored here.
filesIf using file storage, the files are stored here.
redisRedis snapshots are stored here.

Database ​

By default sqlite3 is used and provisioned automatically.

You can choose another database, but you must configure it yourself.

Supported Database Backends:

  • sqlite3
  • mysql
  • postgresql

To configure a database use the following variables.

VariableDescription
DATABASE_TYPEsqlite3 or mysql or postgresql
DATABASE_NAMEDatabase name
DATABASE_USERDatabase username
DATABASE_PASSDatabase password
DATABASE_HOSTDatabase hostname
DATABASE_PORTOptional if default

Variables ​

WARNING

All variables are optional. This is for reference only.

VariableDescriptionExample
SECRETApp SecretJYGTKLztZxVdu5NXuhXGhFJ4AHrJ5YHigQqq
SITE_URLSite URLhttps://example.com
USERNAMELocal Usernameadmin
PASSWORDLocal PasswordPSZX7TgiSg6aB6sZ
SUPER_USERSoAuth Sup User IDs111150265075298304,11114800698361444
DISCORD_CLIENT_IDDiscord Client ID1135676900124135484
DISCORD_CLIENT_SECRETDiscord SecretHbSyPWgOBx1U38MqmEEUy75KUe1Pm7dR
GITHUB_CLIENT_IDGitHub Client ID1135676900124135484
GITHUB_CLIENT_SECRETGitHub SecretHbSyPWgOBx1U38MqmEEUy75KUe1Pm7dR
GOOGLE_CLIENT_IDGoogle Client ID123-asdf.apps.googleusercontent.com
GOOGLE_CLIENT_SECRETGoogle SecretGCSDPC-Tskdfix-klsjdf_r32489fj09jfsd
OAUTH_REDIRECT_URLDiscord Redirecthttps://example.com/oauth/callback/
AWS_REGION_NAMEAWS Region Nameus-east-1
AWS_ACCESS_KEY_IDAWS IAM User KeyAKIEAKADFGASDFASGSDAFSDF
AWS_SECRET_ACCESS_KEYAWS IAM SecreteVJsrhftrv2fcwyYcy323Sfhe5svy5436r55
AWS_STORAGE_BUCKET_NAMEName of s3 bucketmy-s3-bucket
STATIC_QUERYSTRING_EXPIREstatic link expire300
AWS_S3_CDN_URLproxy or cdn urlhttps://examples3cdndomain.com
DUO_API_HOSTDUO API Hostapi-abc123.duosecurity.com
DUO_CLIENT_IDDUO Client IDnmoNmuLM72WB3RsNkwuv
DUO_CLIENT_SECRETDUO SecretnmoNmuLM72WB3RsNkwuvnmoNuLM72WB3RsNk
SENTRY_URLSentry URLhttps://abc@123.ingest.sentry.io/123
SENTRY_ENVIRONMENTSentry ENVprod
RTMP_HOSTRTMP hostname override for URL generationmy-df-server.example.com

Live Streaming ​

RTMP is built in and enabled by default. Port 1935 must be exposed and reachable — see the Live Streaming guide for OBS setup, optional URL parameters, and NAT/firewall notes.

RTMP_HOST overrides the hostname used when generating RTMP URLs in the UI. Set this when your server is behind a CDN or reverse proxy where the auto-detected hostname would be wrong — otherwise streaming clients will receive incorrect URLs.