-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.exs
96 lines (84 loc) · 3.5 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
# 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.
use Mix.Config
# General application configuration
config :fd,
ecto_repos: [Fd.Repo]
# Configures the endpoint
config :fd, FdWeb.Endpoint,
url: [host: "localhost"],
server: true,
http: [
protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192],
dispatch: [
{:_, [
{'/.well-known/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/nodeinfo/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/api/ostatus[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/main/ostatus/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/objects/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/activities/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/notice/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/users/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/push/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/relay/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/inbox/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/proxy/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/media/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/static/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/api/v1/instance/[...]', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{'/api/statusnet/config', Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}},
{:_, Plug.Adapters.Cowboy.Handler, {FdWeb.Endpoint, []}}
]}
]
],
secret_key_base: "UknRWRgXICA0mCWa7QeT/M5pUPZoyZfUmdIsdSbCEh2ObH4mGcwxXwEqR5IgDJYp",
render_errors: [view: FdWeb.ErrorView, accepts: ~w(html json)],
instrumenters: [FdWeb.PhoenixInstrumenter],
pubsub: [name: Fd.PubSub,
adapter: Phoenix.PubSub.PG2]
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
config :fd, :admin_instances, []
config :fd, :instances,
autostart: false,
readrepair: false
config :fd, :delays,
instance_default: {:rand, 25, 35},
instance_calm: {:hour, 12},
instance_monitor: 1,
instance_monitor_calm: 10,
instance_dead: {:hour, 336}
config :phoenix, :template_engines,
md: PhoenixMarkdown.Engine
config :phoenix_markdown, :earmark, %{
gfm: true,
breaks: true
}
config :phoenix_markdown, :server_tags, :all
config :fd, Fd.Cache,
adapter: Nebulex.Adapters.Local,
gc_interval: 3600
config :fd, Fd.Repo,
loggers: [Fd.Repo.Instrumenter, Ecto.LogEntry]
config :hammer,
backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4,
cleanup_interval_ms: 60_000 * 10]}
config :sentry,
dsn: "https://edfc2:[email protected]/42",
environment_name: Mix.env(),
enable_source_code_context: true,
root_source_code_path: File.cwd!,
tags: %{
env: "production"
},
included_environments: [:prod]
# 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_config "pleroma.exs"