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.
Methods
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
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.
def host -> String?
The address to listen on.
def port -> Int?
The port.
def database_url -> String?
The database (postgres://...); nil for an application without one.
def trusted_proxies -> Array[String]?
The proxies whose X-Forwarded-* headers are believed (addresses or
networks, as HTTP::Server's trusted_proxies:).
def log_level -> Symbol?
:debug, :info, :warn or :error.
def pool_size -> Int?
The size of the database's connection pool.
def password_params -> Crypto::Argon2::Params?
The cost of Bezel::Password's hashes (Crypto::Argon2::Params::DEFAULT
when nil).