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.
9 # Don't forget to configure the url host to something meaningful,
10 # Phoenix uses this information when generating URLs.
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 on_init: {Pleroma.Web.Endpoint, :load_from_system_env, []},
18 url: [host: "example.com", port: 80],
19 cache_static_manifest: "priv/static/cache_manifest.json"
21 # Do not print debug messages in production
22 config :logger, level: :info
26 # To get SSL working, you will need to add the `https` key
27 # to the previous section and set your `:url` port to 443:
29 # config :pleroma, Pleroma.Web.Endpoint,
31 # url: [host: "example.com", port: 443],
34 # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
35 # certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
37 # Where those two env variables return an absolute path to
38 # the key and cert in disk or a relative path inside priv,
39 # for example "priv/ssl/server.key".
41 # We also recommend setting `force_ssl`, ensuring no data is
42 # ever sent via http, always redirecting to https:
44 # config :pleroma, Pleroma.Web.Endpoint,
45 # force_ssl: [hsts: true]
47 # Check `Plug.SSL` for all available options in `force_ssl`.
51 # If you are doing OTP releases, you need to instruct Phoenix
52 # to start the server for all endpoints:
54 # config :phoenix, :serve_endpoints, true
56 # Alternatively, you can configure exactly which server to
59 # config :pleroma, Pleroma.Web.Endpoint, server: true
62 # Finally import the config/prod.secret.exs
63 # which should be versioned separately.
64 import_config "prod.secret.exs"