The table below is an exhaustive list of every configuration value accepted by Cookifed.

You can configure the app either using environment variables, or a YAML config file.

Using environment variables

When using environment variables, capitalize each configuration key and replace the dots with underscores.

For example, database.url becomes DATABASE_URL.

Using a YAML config file

Configure the app with the config/config.yml config file. Keep each configuration key in lower case and replace the dots with sub sections.

For example, database.url becomes:

database:
  url: <URL>

Configuration table

KeyDescriptionExampleDefaultFormat
portThe port the app runs on3000string
force_sslWhether to require SSLtrueboolean
rails.envThe Rails environmentproductiondevelopmentstring
puma.workersThe number of independent puma workers0integer
puma.max_threadsThe thread limit per puma worker5integer
database.urlThe PostgreSQL database urlpostgres://example.com:5432/databasestring
database.prepared_statementsWhether to enable prepared statementstrueboolean
database.statement_timeoutThe time in milliseconds after which the server cancels a running statement10000integer
redis.urlThe Redis database urlredis://example.com:6379/0string
redis.read_timeoutThe timeout in seconds for reading data from Redis5integer
redis.network_timeoutThe timeout in seconds for connecting to Redis5integer
redis.pool_timeoutThe timeout in seconds for waiting to get a connection from the Redis pool5integer
storage.serviceThe Active Storage service adapter to uses3string
storage.access_key_idThe access key ID for the storage servicestring
storage.secret_access_keyThe secret access key for the storage servicestring
storage.endpointThe endpoint url for the storage servicehttps://example.comstring
storage.bucketThe name of the bucket to store files instring
storage.regionThe region hosting the storage bucketfr-parstring
smtp.portThe port used to connect to the SMTP server587integer
smtp.hostnameThe hostname of the SMTP serversmtp.example.comlocalhoststring
smtp.tlsWhether to use SSL/TLS (port 465). When false, STARTTLS is used if the server supports ittrueboolean
smtp.usernameThe username for SMTP authenticationstring
smtp.passwordThe password for SMTP authenticationstring
smtp.auth_methodThe SMTP authentication methodplainstring
smtp.openssl_verify_modeThe OpenSSL peer verification mode for SMTP connectionspeerstring
smtp.outgoing_addressThe email address used as the sender for outgoing notificationsnotifications@localhoststring
smtp.reply_to_addressThe reply-to email address for outgoing notificationsstring
smtp.domainThe domain name sent in the SMTP HELO/EHLO commandexample.comstring