Settings2
These are the settings for the core framework. Rather than put them all over the place, I wanted them structured in one big list.
Legion::Cache
module | setting | default value | details |
---|---|---|---|
Legion::Cache | driver | memcached | redis|memcached |
Legion::Cache | servers | ['127.0.0.1:11211'] |
|
Legion::Cache | enabled | true | should we connect Legion::Cache? |
Legion::Cache | namespace | legion |
|
Legion::Cache | compress | false |
|
Legion::Cache | failover | true |
|
Legion::Cache | threadsafe | true |
|
Legion::Cache | expires_in | 0 |
|
Legion::Cache | cache_nils | false |
|
Legion::Cache | pool_size | 5 |
|
Legion::Cache | serializer | Legion::JSON |
|
Legion::Crypt
module | setting | default value | details |
---|---|---|---|
Legion::Crypt | cs_encrypt_ready | false | switches to true when the CS has been confirmed |
Legion::Crypt | dynamic_keys | true | dynamically create pub/private keys that are stored in memory only |
Legion::Crypt | cluster_secret | nil | This is generated randomly, grabbed from vault, requested from an online node, etc. All nodes in the cluster should have this CS |
Legion::Crypt | vault.enabled | set based on if the vault gem is installed |
|
Legion::Crypt | vault.protocol | http |
|
Legion::Crypt | address | localhost |
|
Legion::Crypt | port | 8200 |
|
Legion::Crypt | token |
|
|
Legion::Crypt | connected | false | automatically switches to true with a successful vault connection |
Legion::Crypt | vault.renewer_time | 5 | how often to renew vault leases automatically |
Legion::Crypt | vault.renewer | true | Automatically renew vault leases |
Legion::Crypt | vault.push_cluster_secret | true | store the CS in the vault |
Legion::Crypt | vault.read_cluster_secret | true | grab CS from the vault |
Legion::Data
module | setting | default value | details |
---|---|---|---|
Legion::Data | connected | false | automatically changes to true when connected |
Legion::Data | cache.connected | false | automatically changes to true when connected |
Legion::Data | cache.auto_enable | Legion::Settings[:cache][:connected] |
|
Legion::Data | cache.ttl | 60 |
|
Legion::Data | creds.username | legion |
|
Legion::Data | creds.password | legion |
|
Legion::Data | creds.database | legion |
|
Legion::Data | creds.host | 127.0.0.1 |
|
Legion::Data | creds.port | 3306 |
|
Legion::Data | connection.preconnect | false | Auto connect and establish all connects at the start |
Legion::Data | connection.max_connections | 10 |
|
Legion::Data | connection.log | false |
|
Legion::Data | connection.log_connection_info | false |
|
Legion::Data | connection.log_warn_duration | 1 |
|
Legion::Data | migrations.continue_on_fail | false |
|
Legion::Data | migrations.auto_migrate | true |
|
Legion::Data | migrations.ran | false | changes to true after migrations have run |
Legion::Data | migrations.version | the current migration version number |
|
Legion::Data | models.contonie_on_load_fail | false |
|
Legion::Data | models.autoload | true |
|
Legion::Data | connect_on_start | true |
|
Legion::Transport
module | setting | default value | details |
---|---|---|---|
Legion::Transport | connected | false | automatically changes to true when connected |
Legion::Transport | type | rabbitmq | currently only rabbitmq is supported |
Legion::Transport | logger_level | info |
|
Legion::Transport | messages.encrypt | false | encrypt all messages by default unless overridden at a lower level |
Legion::Transport | messages.ttl | nil | auto expire all messages unless overridden at a lower level |
Legion::Transport | messages.priority | 0 | default message priority |
Legion::Transport | exchanges.type | topic |
|
Legion::Transport | exchanges.auto_delete | false |
|
Legion::Transport | exchanges.durable | true |
|
Legion::Transport |
|
|
|