Repository navigation
Expand file tree
/
Copy pathconfig.exs
More file actions
61 lines (50 loc) · 1.91 KB
/
Copy pathconfig.exs
File metadata and controls
61 lines (50 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
import Config
# General application configuration
config :picape, ecto_repos: [Picape.Repo]
# Configures the endpoint
config :picape, PicapeWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "/XS66yr6BbUsl0+u0pjJIxa0lK5whxGGWGZLuWuBSCbnmNcsRLz+gvyRathkiAM8",
render_errors: [view: PicapeWeb.ErrorView, accepts: ~w(html json)],
pubsub_server: Picape.PubSub
config :picape, Picape.Scheduler,
jobs: [
# Runs every midnight
{"@daily", {Picape.Supermarket, :invalidate_orders, []}},
{"@daily", {Picape.Order, :sync_supermarket, ["1"]}},
{"31 */1 * * *", {Picape.Supermarket.KeepLogin, :get_access_token, []}},
{"@daily", {Picape.Ingredients, :match_supermarket_products, []}}
]
config :new_relic_agent,
app_name: "picape",
license_key: System.get_env("NEW_RELIC_LICENSE_KEY"),
logs_in_context: :direct
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
config :absinthe, schema: PicapeWeb.Graphql.Schema
config :sentry,
# Sentry 13 defaults to Finch. Reuse the hackney HTTPoison already pulls in.
client: Sentry.HackneyClient,
environment_name: Mix.env(),
enable_source_code_context: true,
json_library: Jason,
root_source_code_paths: [File.cwd!()],
tags: %{
env: "production"
}
config :picape, :supermarket, Picape.Supermarket
config :phoenix, :json_library, Jason
config :phoenix, :format_encoders, json: Jason
config :mix_docker, image: "adri/picape"
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
# Import Timber, structured logging
# import_config "timber.exs"