Environment Variables

Assets & Media

Static Files and Media

VariableDefaultDescription
STATICFILES_DIRSstaticStatic files directory
STATIC_URL/staticURL prefix for static files
MEDIA_ROOTmediaUploaded media files directory
MEDIA_URL/mediaURL prefix for media files
TEMPLATES_DIRtemplatesTera templates directory (comma-separated list allowed)
STATICFILESdefault_storageStorage backend
RUNIQUE_MAX_UPLOAD_MB100Global maximum size for file uploads (MB)
RUNIQUE_MAX_TEXT_FIELD_KB1024Maximum size of a multipart text field (KB)

Docker deployment

STATIC_RUNIQUE_PATH points to Runique's own admin static files (CSS, JS). Its default value is resolved at compile time via CARGO_MANIFEST_DIR and is invalid inside a Docker container at runtime.

Set it explicitly in your .env:

STATIC_RUNIQUE_PATH=/app/runique/static

Then copy the corresponding directory from the Runique source into the image during the Docker build.

After a runique dependency version bump, always rebuild the image:

docker compose build
docker compose up -d

docker compose up -d alone reuses the old image and the old assets.