yggdrasil v3.3.2 Yggdrasil.Settings View Source
This module defines the available settings for Yggdrasil.
Link to this section Summary
Functions
Pub-sub adapter to use for channels. Default value is Phoenix.PubSub.PG2
Pub-sub name. By default is Yggdrasil.PubSub
Pub-sub options. By default are [pool_size: 1]
Process registry
Postgres database. Defaults to "postgres"
Postgres hostname. Defaults to "localhost"
Postgres password. Defaults to "postgres"
Postgres port. Defaults to 5432
Postgres username. Defaults to "postgres"
Yggdrasil publisher options. This options are for :poolboy
. Defaults to
[size: 5, max_overflow: 10]
RabbitMQ hostname. Defaults to "localhost"
RabbitMQ password. Defaults to "guest"
RabbitMQ port. Defaults to 5672
RabbitMQ subscriber options. They are options for :poolboy
. Defaults to
[size: 5, max_overflow: 10].
RabbitMQ username. Defaults to "guest"
RabbitMQ virtual host. Defaults to "/"
Redis database. Defaults to 0
Redis hostname. Defaults to "localhost"
Redis password. Defaults to nil
Redis port. Defaults to 6379
Link to this section Functions
Pub-sub adapter to use for channels. Default value is Phoenix.PubSub.PG2
.
config :yggdrasil,
pubsub_adapter: Phoenix.PubSub.PG2
Pub-sub name. By default is Yggdrasil.PubSub
.
config :yggdrasil,
pubsub_name: Yggdrasil.PubSub
Pub-sub options. By default are [pool_size: 1]
.
config :yggdrasil,
pubsub_options: [pool_size: 1]
Process registry.
config :yggdrasil,
registry: ExReg
Postgres database. Defaults to "postgres"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_POSTGRES_DATABASE
. - The configuration file.
- The default value
"postgres"
.
If the database is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_POSTGRES_DATABASE
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
postgres: [database: "postgres"]
Postgres hostname. Defaults to "localhost"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_POSTGRES_HOSTNAME
. - The configuration file.
- The default value
"localhost"
If the hostname is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_POSTGRES_HOSTNAME
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
potgres: [hostname: "localhost"]
Postgres password. Defaults to "postgres"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_POSTGRES_PASSWORD
. - The configuration file.
- The default value
"postgres"
.
If the password is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_POSTGRES_PASSWORD
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
postgres: [password: "postgres"]
Postgres port. Defaults to 5432
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_POSTGRES_PORT
. - The configuration file.
- The default value
5432
.
If the port is defined using a namespace, then the name of the OS variable
should be $<NAMESPACE>_YGGDRASIL_POSTGRES_PORT
where NAMESPACE
is the
snake case version of the actual namespace e.g MyApp.Namespace
would
be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
postgres: [port: 5432]
Postgres username. Defaults to "postgres"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_POSTGRES_USERNAME
. - The configuration file.
- The default value
"postgres"
.
If the username is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_POSTGRES_USERNAME
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
postgres: [username: "postgres"]
Yggdrasil publisher options. This options are for :poolboy
. Defaults to
[size: 5, max_overflow: 10]
.
config :yggdrasil,
publisher_options: [size: 5, max_overflow: 10]
RabbitMQ hostname. Defaults to "localhost"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_RABBITMQ_HOSTNAME
. - The configuration file.
- The default value
"localhost"
If the hostname is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_RABBITMQ_HOSTNAME
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
rabbitmq: [hostname: "localhost"]
RabbitMQ password. Defaults to "guest"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_RABBITMQ_PASSWORD
. - The configuration file.
- The default value
"guest"
.
If the password is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_RABBITMQ_PASSWORD
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
rabbitmq: [password: "guest"]
RabbitMQ port. Defaults to 5672
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_RABBITMQ_PORT
. - The configuration file.
- The default value
5672
.
If the port is defined using a namespace, then the name of the OS variable
should be $<NAMESPACE>_YGGDRASIL_RABBITMQ_PORT
where NAMESPACE
is the
snake case version of the actual namespace e.g MyApp.Namespace
would
be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
rabbitmq: [port: 5672]
RabbitMQ subscriber options. They are options for :poolboy
. Defaults to
[size: 5, max_overflow: 10].
config :yggdrasil, [NAMESPACE]
rabbitmq: [subscriber_options: [size: 5, max_overflow: 10]]
RabbitMQ username. Defaults to "guest"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_RABBITMQ_USERNAME
. - The configuration file.
- The default value
"guest"
.
If the username is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_RABBITMQ_USERNAME
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
rabbitmq: [username: "guest"]
RabbitMQ virtual host. Defaults to "/"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_RABBITMQ_VIRTUAL_HOST
. - The configuration file.
- The default value
"/"
.
If the virtual host is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_RABBITMQ_VIRTUAL_HOST
where
NAMESPACE
is the snake case version of the actual namespace e.g
MyApp.Namespace
would be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
rabbitmq: [virtual_host: "/"]
Redis database. Defaults to 0
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_REDIS_DATABASE
. - The configuration file.
- The default value
0
.
If the database is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_REDIS_DATABASE
where NAMESPACE
is the snake case version of the actual namespace e.g MyApp.Namespace
would
be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
redis: [database: 0]
Redis hostname. Defaults to "localhost"
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_REDIS_HOSTNAME
. - The configuration file.
- The default value
"localhost"
If the hostname is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_REDIS_HOSTNAME
where NAMESPACE
is the snake case version of the actual namespace e.g MyApp.Namespace
would
be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
redis: [hostname: "localhost"]
Redis password. Defaults to nil
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_REDIS_PASSWORD
. - The configuration file.
- The default value
nil
.
If the password is defined using a namespace, then the name of the OS
variable should be $<NAMESPACE>_YGGDRASIL_REDIS_PASSWORD
where NAMESPACE
is the snake case version of the actual namespace e.g MyApp.Namespace
would
be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
redis: [password: nil]
Redis port. Defaults to 6379
.
It looks for the value following this order:
- The OS environment variable
$YGGDRASIL_REDIS_PORT
. - The configuration file.
- The default value
6379
.
If the port is defined using a namespace, then the name of the OS variable
should be $<NAMESPACE>_YGGDRASIL_REDIS_PORT
where NAMESPACE
is the snake
case version of the actual namespace e.g MyApp.Namespace
would
be MYAPP_NAMESPACE
.
config :yggdrasil, [NAMESPACE]
redis: [port: 6379]