-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathconfig.exs
More file actions
89 lines (69 loc) · 2.35 KB
/
config.exs
File metadata and controls
89 lines (69 loc) · 2.35 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
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
import Config
config :plausible,
ecto_repos: [Plausible.Repo, Plausible.IngestRepo]
config :plausible, PlausibleWeb.Endpoint,
# Does not to have to be secret, as per: https://github.com/phoenixframework/phoenix/issues/2146
live_view: [signing_salt: "f+bZg/crMtgjZJJY7X6OwIWc3XJR2C5Y"],
pubsub_server: Plausible.PubSub,
render_errors: [
view: PlausibleWeb.ErrorView,
layout: {PlausibleWeb.LayoutView, "base_error.html"},
accepts: ~w(html json)
]
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
config :esbuild,
version: "0.17.11",
default: [
args:
~w(js/app.js js/dashboard.tsx js/embed.host.js js/embed.content.js --bundle --target=es2017 --loader:.js=jsx --outdir=../priv/static/js --define:BUILD_EXTRA=true),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
config :tailwind,
version: "4.1.12",
default: [
args: ~w(
--input=assets/css/app.css
--output=priv/static/css/app.css
),
cd: Path.expand("..", __DIR__)
]
config :ua_inspector,
database_path: "priv/ua_inspector",
remote_release: "6.5.0"
config :ref_inspector,
database_path: "priv/ref_inspector"
config :plausible,
paddle_api: Plausible.Billing.PaddleApi,
google_api: Plausible.Google.API
config :plausible,
# 30 minutes
session_timeout: 1000 * 60 * 30,
session_length_minutes: 30
config :fun_with_flags, :cache_bust_notifications, enabled: false
config :fun_with_flags, :persistence,
adapter: FunWithFlags.Store.Persistent.Ecto,
repo: Plausible.Repo
config :plausible, Plausible.ClickhouseRepo, loggers: [Ecto.LogEntry]
config :plausible, Plausible.Repo,
timeout: 300_000,
connect_timeout: 300_000,
handshake_timeout: 300_000,
queue_target: 500,
queue_inerval: 1100
config :plausible, Plausible.Cache, enabled: true
config :plausible, Plausible.Ingestion.Counters, enabled: true
config :ex_cldr,
default_locale: "en",
default_backend: Plausible.Cldr
config :sentry,
enable_source_code_context: true,
root_source_code_path: [File.cwd!()]
config :prom_ex, :storage_adapter, Plausible.PromEx.StripedPeep
config :peep, :bucket_calculator, Plausible.PromEx.Buckets
config :plausible, Plausible.Auth.ApiKey,
legacy_per_user_hourly_request_limit: 600,
burst_request_limit: 60,
burst_period_seconds: 10
import_config "#{config_env()}.exs"