Configuration
Database Configuration
This table contains environment variables related to database connectivity and settings.
DATABASE_USERNAME
The username used for accessing the database.
None
DATABASE_PASSWORD
The password associated with the database username.
None
DATABASE_DB_NAME
The name of the database to which the application connects.
None
DATABASE_HOST
The hostname where the database is hosted.
None
DATABASE_PORT
The port number for the database connection.
5432
DATABASE_TIMEOUT
The timeout setting for database connections, in milliseconds.
5000
Authentication
This table includes variables related to authentication mechanisms, such as CAS and secret keys.
DEVISE_AUTH_TYPE
Authentication type, allowed values: db
, cas
.
db
DEVISE_CAS_AUTH_URL
URL for CAS authentication.
https://cas.example.com
DEVISE_CAS_AUTH_SERVICE_PATH
CAS service relative path.
users/service
CAS_DATA_DIRECTORY
Directory for storing CAS data.
None
SECRET_KEY_BASE
Required in production. Generate using rails secret
.
None
Application Configuration
This table contains variables related to the application's runtime environment, logging, and threading.
APP_ENV
Specifies the application environment (e.g., development
, production
).
development
RAILS_ENV
Specifies the Rails environment.
development
RAILS_DISABLE_SSL
Disables forced SSL in the Rails application.
true
RAILS_LOG_LEVEL
Specifies the log level for Rails.
error
ALLOWED_HOSTS
Comma-separated list or regex of allowed hosts.
localhost
FOOTER_TEXT
Footer text displayed in the application.
None
SIDEKIQ_CONCURRENCY
Specifies the number of threads Sidekiq uses to process jobs.
5
RAILS_MAX_THREADS
Specifies the maximum number of threads for the Rails server.
3
SMTP Settings
This table includes variables related to email configuration via SMTP.
In our development setup, we use Mailcatcher as the default SMTP server. This tool captures outgoing emails from the application, enabling us to test and debug without sending real emails. You can see a list of email at: http://localhost:8517.
SMTP_ADDRESS
The SMTP server address.
None
SMTP_PORT
The SMTP server port.
None
SMTP_DOMAIN
The domain for SMTP.
None
SMTP_USERNAME
The username for SMTP authentication.
None
SMTP_PASSWORD
The password for SMTP authentication.
None
Last updated