Remove deps from Streaming/Persisting behaviors
[akkoma] / config / dev.exs
1 use Mix.Config
2
3 # For development, we disable any cache and enable
4 # debugging and code reloading.
5 #
6 # The watchers configuration can be used to run external
7 # watchers to your application. For example, we use it
8 # with brunch.io to recompile .js and .css sources.
9 config :pleroma, Pleroma.Web.Endpoint,
10 http: [
11 port: 4000,
12 protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192]
13 ],
14 protocol: "http",
15 debug_errors: true,
16 code_reloader: true,
17 check_origin: false,
18 watchers: [],
19 secure_cookie_flag: false
20
21 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Local
22
23 # ## SSL Support
24 #
25 # In order to use HTTPS in development, a self-signed
26 # certificate can be generated by running the following
27 # command from your terminal:
28 #
29 # openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout priv/server.key -out priv/server.pem
30 #
31 # The `http:` config above can be replaced with:
32 #
33 # https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
34 #
35 # If desired, both `http:` and `https:` keys can be
36 # configured to run both http and https servers on
37 # different ports.
38
39 # Do not include metadata nor timestamps in development logs
40 config :logger, :console, format: "[$level] $message\n"
41
42 # Set a higher stacktrace during development. Avoid configuring such
43 # in production as building large stacktraces may be expensive.
44 config :phoenix, :stacktrace_depth, 20
45
46 # Configure your database
47 config :pleroma, Pleroma.Repo,
48 adapter: Ecto.Adapters.Postgres,
49 username: "postgres",
50 password: "postgres",
51 database: "pleroma_dev",
52 hostname: "localhost",
53 pool_size: 10
54
55 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
56
57 if File.exists?("./config/dev.secret.exs") do
58 import_config "dev.secret.exs"
59 else
60 IO.puts(
61 "!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
62 )
63 end
64
65 if File.exists?("./config/dev.exported_from_db.secret.exs"),
66 do: import_config("dev.exported_from_db.secret.exs")