Environment Variables
Customizable environment variables
| Name | Description | Default Value |
|---|---|---|
FARM_APP_PORT | Application port | 6178 |
FARM_REDIS_HOST | Redis hostname | localhost |
FARM_REDIS_PORT | Redis host port | 6380 |
FARM_REDIS_PASSWORD | Password for the redis host | nil |
FARM_REDIS_TIMEOUT | Redis connection timeout | 5000 |
FARM_POSTGRES_USER | Postgres host username | nil |
FARM_POSTGRES_PASSWORD | Postgres host password | nil |
FARM_JDBC_POSTGRES_URL | Postgres jdbc url | jdbc:postgresql://localhost:5832/farm |
FARM_BASIC_AUTH_USERNAME | Basic auth username used to read api docs | nil |
FARM_BASIC_AUTH_PASSWORD | Basic auth password used to read api docs | nil |
FARM_SU_USER_DEFAULT_USERNAME | Super user default username | nil |
FARM_SU_USER_DEFAULT_PASSWORD | Super user default password | nil |
FARM_SU_USER_DEFAULT_PHONE | Super user default phone number | nil |
FARM_SU_USER_DEFAULT_EMAIL | Super user default email | nil |
FARM_SU_USER_DEFAULT_FIRST_NAME | Super user first name | nil |
FARM_SU_USER_DEFAULT_OTHER_NAMES | Super user other names | nil |
FARM_OTP_LENGTH | Character length of OTP | 12 |
FARM_OTP_EXPIRY_IN_SECONDS | OTP expiry in seconds | 300 |
FARM_OTP_COOL_DOWN_PERIOD_SECONDS | Wait time before requesting another OTP in seconds | 60 |
FARM_PULSAR_URL | Pulsar host name | pulsar://localhost:6650 |
FARM_MESSAGING_SCHEDULER_EVENT_PRODUCER_RATE | How frequently are messages read from the outbox table and dispatched to the message bus | 1000 = Every 1 second |
FARM_MESSAGING_SCHEDULER_CLEANER_RATE | How frequently should the outbox table be cleared of sent events, in milliseconds | 3600000 = Every 1 hour |
FARM_DEFAULT_TIME_ZONE | Default system timezone | Africa/Nairobi |
FARM_SENDGRID_API_KEY | Sendgrid Api Key | nil |
FARM_SENDGRID_FROM_EMAIL | Sendgrid from email | nil |
FARM_SENDGRID_FROM_NAME | Sendgrid from name | nil |