Environment Variables
The application can be configured using environment variables.
Simply set the environment variables when starting the Docker container or in your docker-compose.yml
when using Docker Compose.
Variable | Description | Default Value |
---|---|---|
USER_APPROVAL_REQUIRED | Whether to require user approval before they can upload images. Available options are true and false | true |
USER_ALLOW_UNAUTHENTICATED_ACCESS | Whether to allow unauthenticated users to access public routes. Available options are true and false | true |
USER_PASSWORD_MIN_LENGTH | Minimum password length required for users. | 6 |
USER_PASSWORD_REQUIREMENTS | Bitmask of password requirements. Sum of the following options: 1 (numbers), 2 (lowercase), 4 (uppercase), 8 (special characters). | 15 |
IMAGE_MAX_SIZE | Maximum image size allowed to be uploaded (no more than 50M). | 15M |
IMAGE_STRIP_EXIF_METADATA | Whether to strip EXIF metadata from the uploaded images. Available options are true and false | true |
STORAGE_PROVIDER | Storage provider to use. Available options are local ,smb ,s3 | local |
SMB_HOST | SMB host to connect to. Required if Samba provider is used. | null |
SMB_USERNAME | SMB username to use. Required if Samba provider is used. | null |
SMB_PASSWORD | SMB password to use. Required if Samba provider is used. | null |
SMB_SHARE | SMB share to use. Required if Samba provider is used. | null |
AMAZON_S3_REGION | AWS region to use for S3 storage. Required if an Amazon S3 provider is used. | null |
AMAZON_S3_BUCKET | AWS bucket name to use for S3 storage. Required if an Amazon S3 provider is used. | null |
AMAZON_S3_ACCESS_KEY_ID | AWS access key ID to use for S3 storage. Required if an Amazon S3 provider is used. | null |
AMAZON_S3_SECRET_ACCESS_KEY | AWS secret access key to use for S3 storage. Required if an Amazon S3 provider is used. | null |