View Source Configuration

environment-file

Environment file

All configuration used by the app is stored in the .env file. You can find an example file in .env.sample, but you should copy it to .env and fill it with your own values (described below).

storage

Storage

VariableValuesDefaultRequiredDescription
PRESENTATION_STORAGElocal, s3local-Define where the presentation files will be stored
AWS_ACCESS_KEY_ID--only for s3Your AWS Access Key ID
AWS_SECRET_ACCESS_KEY--only for s3Your AWS Secret Access Key
AWS_S3_BUCKET--only for s3The name of the bucket where the presentation files will be stored
AWS_S3_REGION--only for s3The region where the bucket is located

mail

Mail

VariableValuesDefaultRequiredDescription
MAIL_TRANSPORTlocal, smtplocal-Define how the emails will be sent
MAIL_FROM-Claper-Email address used to send emails
MAIL_FROM_NAME-noreply@claper.co-Name used to send emails
SMTP_RELAY--only for smtpSMTP relay server
SMTP_USERNAME--only for smtpSMTP username
SMTP_PASSWORD--only for smtpSMTP password
SMTP_PORT-25-SMTP port
SMTP_TLSalways, never, if_availablealways-SMTP TLS
SMTP_AUTHalways, never, if_availablealways-SMTP Auth
SMTP_SSLtrue, falsetrue-SMTP SSL
ENABLE_MAILBOX_ROUTEtrue, falsefalse-Enable/disable route to local mailbox (/dev/mailbox)
MAILBOX_USER---Basic auth user for mailbox route
MAILBOX_PASSWORD---Basic auth password for mailbox route

application

Application

VariableValuesDefaultRequiredDescription
ENABLE_ACCOUNT_CREATIONtrue, falsetrue-Enable/disable user registration

production-docker

Production / Docker

You can use all local variables plus the following:

VariableValuesDefaultRequiredDescription
DATABASE_URL--Postgres connection string
SECRET_KEY_BASE--Generate it with mix phx.gen.secret
ENDPOINT_HOST-localhost-Host used to access the app (used for url generation)
ENDPOINT_PORT-80-Port used to access the app (used for url generation)
PORT-4000-Port to listen to