total rebase
[anni] / config / dev.exs
1 import 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   ],
13   protocol: "http",
14   debug_errors: true,
15   code_reloader: true,
16   check_origin: false,
17   watchers: [],
18   secure_cookie_flag: false
19
20 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Local
21
22 # ## SSL Support
23 #
24 # In order to use HTTPS in development, a self-signed
25 # certificate can be generated by running the following
26 # command from your terminal:
27 #
28 #     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
29 #
30 # The `http:` config above can be replaced with:
31 #
32 #     https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
33 #
34 # If desired, both `http:` and `https:` keys can be
35 # configured to run both http and https servers on
36 # different ports.
37
38 # Do not include metadata nor timestamps in development logs
39 config :logger, :console, format: "[$level] $message\n"
40
41 # Set a higher stacktrace during development. Avoid configuring such
42 # in production as building large stacktraces may be expensive.
43 config :phoenix, :stacktrace_depth, 20
44
45 # Configure your database
46 config :pleroma, Pleroma.Repo,
47   adapter: Ecto.Adapters.Postgres,
48   username: "postgres",
49   password: "postgres",
50   database: "pleroma_dev",
51   hostname: "localhost",
52   pool_size: 10
53
54 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
55
56 # Reduce recompilation time
57 # https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
58 config :phoenix, :plug_init_mode, :runtime
59
60 if File.exists?("./config/dev.secret.exs") do
61   import_config "dev.secret.exs"
62 else
63   IO.puts(
64     :stderr,
65     "!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
66   )
67 end
68
69 if File.exists?("./config/dev.exported_from_db.secret.exs"),
70   do: import_config("dev.exported_from_db.secret.exs")