Add configuration generation tool, update readme.
[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: [port: 4000],
11 protocol: "http",
12 debug_errors: true,
13 code_reloader: true,
14 check_origin: false,
15 watchers: []
16
17 # ## SSL Support
18 #
19 # In order to use HTTPS in development, a self-signed
20 # certificate can be generated by running the following
21 # command from your terminal:
22 #
23 # 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
24 #
25 # The `http:` config above can be replaced with:
26 #
27 # https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
28 #
29 # If desired, both `http:` and `https:` keys can be
30 # configured to run both http and https servers on
31 # different ports.
32
33 # Do not include metadata nor timestamps in development logs
34 config :logger, :console, format: "[$level] $message\n"
35
36 # Set a higher stacktrace during development. Avoid configuring such
37 # in production as building large stacktraces may be expensive.
38 config :phoenix, :stacktrace_depth, 20
39
40 # Configure your database
41 config :pleroma, Pleroma.Repo,
42 adapter: Ecto.Adapters.Postgres,
43 username: "postgres",
44 password: "postgres",
45 database: "pleroma_dev",
46 hostname: "localhost",
47 pool_size: 10
48
49 try do
50 import_config "dev.secret.exs"
51 rescue
52 _-> IO.puts("!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs")
53 end