tilastokeskus/backend/config/config.exs

59 lines
1.7 KiB
Elixir
Raw Normal View History

import Config
2018-06-09 18:09:30 +00:00
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project. For this reason,
# if you want to provide default values for your application for
# 3rd-party users, it should be done in your "mix.exs" file.
# You can configure your application as:
#
# config :tilastokeskus, key: :value
#
# and access this configuration in your application as:
#
# Application.get_env(:tilastokeskus, :key)
#
# You can also configure a 3rd-party app:
#
# config :logger, level: :info
#
# It is also possible to import configuration files, relative to this
# directory. For example, you can emulate configuration per environment
# by uncommenting the line below and defining dev.exs, test.exs and such.
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
# import_config "#{Mix.env}.exs"
config :tilastokeskus,
2018-06-09 18:28:56 +00:00
ecto_repos: [Tilastokeskus.Archive.Repo]
2018-06-09 18:09:30 +00:00
2018-06-09 18:28:56 +00:00
config :tilastokeskus, Tilastokeskus.Archive.Repo,
2018-06-09 18:09:30 +00:00
url: "ecto://tilastokeskus:tilastokeskus@localhost/tilastokeskus",
2018-06-09 18:28:56 +00:00
types: Tilastokeskus.Archive.PostgresTypes
2018-06-25 21:18:53 +00:00
2018-06-28 20:45:13 +00:00
if Mix.env() != :prod do
config :ua_inspector,
# This is for the DB download mix tasks
database_path: "priv/ua"
else
config :ua_inspector,
# This is for runtime configuration
init: {Tilastokeskus.Reception.UADetector, :init}
end
2018-06-27 19:47:36 +00:00
config :geolix,
init: {Tilastokeskus.Reception.Geolix, :init}
config :geolite2data,
geolix_updater: true,
logger: Mix.env() != :prod
2018-06-29 19:23:07 +00:00
# Don't print every request in production
if Mix.env() == :prod do
config :logger,
level: :error
end