Skip to main content

Run media api server

Open a terminal and run:

cd liventcord/server/media-api
cp env.example .env
go run .

Configuration

Set the following configuration values for the media API.

  • ExternalMediaLimit

    • Maximum allowed size of total external media in gigabytes.
    • Defaults to 10.
  • CloudflareMediaWorkerUrl (Optional)

  • MainServerUrl

    • URL of the main server used by the media API.
  • AddToBlacklist

    • List of external media origins to add blacklist (array).
  • AdminPassword

    • Password/token used for authenticating server.

Example configuration:

ExternalMediaLimit = 10
CloudflareMediaWorkerUrl = "https://your-cf-media-worker.example"
MainServerUrl = "http://localhost:5005"
AddToBlacklist = ["https://example.com"]
AdminPassword = "admin"