All the important parts of configuration of a Twyne site
happen in the
The minimum that should be set are as follows:
APP_SECRET=a-long-random-string APP_MAIL_SENDERemail@example.com APP_LOG_RECIPIENTfirstname.lastname@example.org MAILER_DSN=smtp://username:email@example.com
Other configuration (that is likely to be changed occasionally during the normal operation of the site) happens on the Settings page, accessible via the main menu.
There are two options for file storage: the local filesystem, and S3-compatible object stores (such as those from AWS, Digital Ocean, OVH, Dreamhost, etc.).
The local filesystem is the default, and files will be stored in the
This location can be changed via
To use S3-compatible storage, set the following environment variables:
APP_FS_DATA_STORE=aws APP_FS_AWS_REGION= APP_FS_AWS_ENDPOINT= APP_FS_AWS_BUCKET= APP_FS_AWS_KEY= APP_FS_AWS_SECRET=
Uploaded files will have various derivative files created for them, such as thumbnails of images.
These files will be stored in the
var/app_temp/ directory by default.
This directory can be changed in
The temporary directory contains only files that will be regenerated as required (hence the name ‘temporary’; these are however long-lived files). There is no need to back up this directory.