Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into develop
[akkoma] / config / prod.exs
1 use Mix.Config
2
3 # For production, we often load configuration from external
4 # sources, such as your system environment. For this reason,
5 # you won't find the :http configuration below, but set inside
6 # Pleroma.Web.Endpoint.load_from_system_env/1 dynamically.
7 # Any dynamic configuration should be moved to such function.
8 #
9 # Don't forget to configure the url host to something meaningful,
10 # Phoenix uses this information when generating URLs.
11 #
12 # Finally, we also include the path to a cache manifest
13 # containing the digested version of static files. This
14 # manifest is generated by the mix phoenix.digest task
15 # which you typically run after static files are built.
16 config :pleroma, Pleroma.Web.Endpoint,
17 http: [port: 4000],
18 protocol: "http"
19
20 # Do not print debug messages in production
21 config :logger, level: :info
22
23 # ## SSL Support
24 #
25 # To get SSL working, you will need to add the `https` key
26 # to the previous section and set your `:url` port to 443:
27 #
28 # config :pleroma, Pleroma.Web.Endpoint,
29 # ...
30 # url: [host: "example.com", port: 443],
31 # https: [:inet6,
32 # port: 443,
33 # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
34 # certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
35 #
36 # Where those two env variables return an absolute path to
37 # the key and cert in disk or a relative path inside priv,
38 # for example "priv/ssl/server.key".
39 #
40 # We also recommend setting `force_ssl`, ensuring no data is
41 # ever sent via http, always redirecting to https:
42 #
43 # config :pleroma, Pleroma.Web.Endpoint,
44 # force_ssl: [hsts: true]
45 #
46 # Check `Plug.SSL` for all available options in `force_ssl`.
47
48 # ## Using releases
49 #
50 # If you are doing OTP releases, you need to instruct Phoenix
51 # to start the server for all endpoints:
52 #
53 # config :phoenix, :serve_endpoints, true
54 #
55 # Alternatively, you can configure exactly which server to
56 # start per endpoint:
57 #
58 # config :pleroma, Pleroma.Web.Endpoint, server: true
59 #
60
61 # Finally import the config/prod.secret.exs
62 # which should be versioned separately.
63 import_config "prod.secret.exs"