mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
add redis host for docker env, fixes #3
This commit is contained in:
parent
3c84bae2fc
commit
402c2eae90
3 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,7 @@ import Config
|
|||
config :philomena,
|
||||
ecto_repos: [Philomena.Repo],
|
||||
elasticsearch_url: "http://localhost:9200",
|
||||
redis_host: "localhost",
|
||||
password_pepper: "dn2e0EpZrvBLoxUM3gfQveBhjf0bG/6/bYhrOyq3L3hV9hdo/bimJ+irbDWsuXLP",
|
||||
otp_secret_key: "Wn7O/8DD+qxL0X4X7bvT90wOkVGcA90bIHww4twR03Ci//zq7PnMw8ypqyyT/b/C",
|
||||
tumblr_api_key: "fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4",
|
||||
|
|
|
@ -10,7 +10,8 @@ config :philomena, Philomena.Repo,
|
|||
pool_size: 10
|
||||
|
||||
config :philomena,
|
||||
elasticsearch_url: "http://elasticsearch:9200"
|
||||
elasticsearch_url: "http://elasticsearch:9200",
|
||||
redis_host: "redis"
|
||||
|
||||
# For development, we disable any cache and enable
|
||||
# debugging and code reloading.
|
||||
|
|
|
@ -16,7 +16,7 @@ defmodule Philomena.Application do
|
|||
# {Philomena.Worker, arg},
|
||||
Philomena.Servers.ImageProcessor,
|
||||
Pow.Store.Backend.MnesiaCache,
|
||||
{Redix, name: :redix}
|
||||
{Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)}
|
||||
]
|
||||
|
||||
# See https://hexdocs.pm/elixir/Supervisor.html
|
||||
|
|
Loading…
Reference in a new issue