forked from pentacent/keila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.exs
105 lines (88 loc) · 2.86 KB
/
config.exs
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# 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.
# General application configuration
import Config
config :keila,
ecto_repos: [Keila.Repo]
# Configures the endpoint
config :keila, KeilaWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "ipC9dsQLUBKuLmcrKzqB3m1M/Sw/53FcA1xQd1yUKdTSqjlBqL729evTWqqwd6zT",
render_errors: [view: KeilaWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: Keila.PubSub,
live_view: [signing_salt: "kH+cT7XL"]
config :esbuild,
version: "0.12.18",
default: [
args: ~w(js/app.js --bundle --target=es2016 --outdir=../priv/static/js),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
config :keila, Keila.Id,
separator: "_",
alphabet: "abcdefghijkmnopqrstuvwxyz23456789ABCDEFGHJKLMNPQRSTUVWXYZ_",
salt: "bF4QzDjqV",
min_len: 8
config :keila, Keila.Mailings,
# Minimum offset in seconds between current time and allowed scheduling time
min_campaign_schedule_offset: 300,
# Set Precedence: Bulk header
enable_precedence_header: true
config :keila, Keila.Mailings.SenderAdapters,
adapters: [
Keila.Mailings.SenderAdapters.SMTP,
Keila.Mailings.SenderAdapters.Sendgrid,
Keila.Mailings.SenderAdapters.SES,
Keila.Mailings.SenderAdapters.Mailgun
],
shared_adapters: [
Keila.Mailings.SenderAdapters.Shared.SES
]
config :keila, Keila.Accounts,
# Disable sending quotas by default
credits_enabled: false
config :keila, Keila.Billing,
# Disable subscriptions by default
enabled: false,
paddle_vendor: "2518",
paddle_environment: "sandbox"
# Staging configuration for hCaptcha
config :keila, KeilaWeb.Hcaptcha,
secret_key: "0x0000000000000000000000000000000000000000",
site_key: "10000000-ffff-ffff-ffff-000000000001",
url: "https://hcaptcha.com/siteverify"
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
config :keila, Oban,
queues: [
mailer: 50,
periodic: 1
],
repo: Keila.Repo,
plugins: [
{Oban.Plugins.Pruner, max_age: 1800},
{Oban.Plugins.Cron,
crontab: [
{"* * * * *", Keila.Mailings.DeliverScheduledCampaignsWorker}
]}
]
# Use Timezone database
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
# Add tsv MIME type
config :mime, :types, %{
"text/tab-separated-values" => ["tsv"]
}
# Configure locales
config :keila, KeilaWeb.Gettext,
default_locale: "en",
locales: ["de", "en"]
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"