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