data Bezel::Settings

What an application's config/<env>.qz gives for one environment (MyApp::Config.dev returns one): every setting optional, the environment variables taking precedence over it. Secrets are not here: SECRET_KEY_BASE comes from the environment only.

src/config.qz:5

Methods

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/config.qz:5

def with(*, host: String? = …, port: Int? = …, database_url: String? = …, trusted_proxies: Array[String]? = …, log_level: Symbol? = …, pool_size: Int? = …, password_params: Crypto::Argon2::Params? = …) -> Bezel::Settings

A copy with the fields given replaced.

src/config.qz:5

def host -> String?

The address to listen on.

src/config.qz:7

def port -> Int?

The port.

src/config.qz:9

def database_url -> String?

The database (postgres://...); nil for an application without one.

src/config.qz:11

def trusted_proxies -> Array[String]?

The proxies whose X-Forwarded-* headers are believed (addresses or networks, as HTTP::Server's trusted_proxies:).

src/config.qz:14

def log_level -> Symbol?

:debug, :info, :warn or :error.

src/config.qz:16

def pool_size -> Int?

The size of the database's connection pool.

src/config.qz:18

def password_params -> Crypto::Argon2::Params?

The cost of Bezel::Password's hashes (Crypto::Argon2::Params::DEFAULT when nil).

src/config.qz:21