Skip to main content
Version: 1.0.0

Environment Variables

Customizable environment variables

NameDescriptionDefault Value
FARM_APP_PORTApplication port6178
FARM_REDIS_HOSTRedis hostnamelocalhost
FARM_REDIS_PORTRedis host port6380
FARM_REDIS_PASSWORDPassword for the redis hostnil
FARM_REDIS_TIMEOUTRedis connection timeout5000
FARM_POSTGRES_USERPostgres host usernamenil
FARM_POSTGRES_PASSWORDPostgres host passwordnil
FARM_JDBC_POSTGRES_URLPostgres jdbc urljdbc:postgresql://localhost:5832/farm
FARM_BASIC_AUTH_USERNAMEBasic auth username used to read api docsnil
FARM_BASIC_AUTH_PASSWORDBasic auth password used to read api docsnil
FARM_SU_USER_DEFAULT_USERNAMESuper user default usernamenil
FARM_SU_USER_DEFAULT_PASSWORDSuper user default passwordnil
FARM_SU_USER_DEFAULT_PHONESuper user default phone numbernil
FARM_SU_USER_DEFAULT_EMAILSuper user default emailnil
FARM_SU_USER_DEFAULT_FIRST_NAMESuper user first namenil
FARM_SU_USER_DEFAULT_OTHER_NAMESSuper user other namesnil
FARM_OTP_LENGTHCharacter length of OTP12
FARM_OTP_EXPIRY_IN_SECONDSOTP expiry in seconds300
FARM_OTP_COOL_DOWN_PERIOD_SECONDSWait time before requesting another OTP in seconds60
FARM_PULSAR_URLPulsar host namepulsar://localhost:6650
FARM_MESSAGING_SCHEDULER_EVENT_PRODUCER_RATEHow frequently are messages read from the outbox table and dispatched to the message bus1000 = Every 1 second
FARM_MESSAGING_SCHEDULER_CLEANER_RATEHow frequently should the outbox table be cleared of sent events, in milliseconds3600000 = Every 1 hour
FARM_DEFAULT_TIME_ZONEDefault system timezoneAfrica/Nairobi
FARM_SENDGRID_API_KEYSendgrid Api Keynil
FARM_SENDGRID_FROM_EMAILSendgrid from emailnil
FARM_SENDGRID_FROM_NAMESendgrid from namenil