1 # Pleroma instance configuration
3 # NOTE: This file should not be committed to a repo or otherwise made public
4 # without removing sensitive information.
6 <%= if Code.ensure_loaded?(Config) or not Code.ensure_loaded?(Mix.Config) do
12 config :pleroma, Pleroma.Web.Endpoint,
13 url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
14 http: [ip: {<%= String.replace(listen_ip, ".", ", ") %>}, port: <%= listen_port %>],
15 secret_key_base: "<%= secret %>",
16 signing_salt: "<%= signing_salt %>"
18 config :pleroma, :instance,
20 email: "<%= email %>",
21 notify_email: "<%= notify_email %>",
23 registrations_open: true,
24 dynamic_configuration: <%= db_configurable? %>
26 config :pleroma, :media_proxy,
28 redirect_on_failure: true
29 #base_url: "https://cache.pleroma.social"
31 config :pleroma, Pleroma.Repo,
32 adapter: Ecto.Adapters.Postgres,
33 username: "<%= dbuser %>",
34 password: "<%= dbpass %>",
35 database: "<%= dbname %>",
36 hostname: "<%= dbhost %>",
39 # Configure web push notifications
40 config :web_push_encryption, :vapid_details,
41 subject: "mailto:<%= email %>",
42 public_key: "<%= web_push_public_key %>",
43 private_key: "<%= web_push_private_key %>"
45 config :pleroma, :database, rum_enabled: <%= rum_enabled %>
46 config :pleroma, :instance, static_dir: "<%= static_dir %>"
47 config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
49 # Enable Strict-Transport-Security once SSL is working:
50 # config :pleroma, :http_security,
53 # Configure S3 support if desired.
54 # The public S3 endpoint is different depending on region and provider,
55 # consult your S3 provider's documentation for details on what to use.
57 # config :pleroma, Pleroma.Uploaders.S3,
58 # bucket: "some-bucket",
59 # public_endpoint: "https://s3.amazonaws.com"
61 # Configure S3 credentials:
62 # config :ex_aws, :s3,
63 # access_key_id: "xxxxxxxxxxxxx",
64 # secret_access_key: "yyyyyyyyyyyy",
65 # region: "us-east-1",
68 # For using third-party S3 clones like wasabi, also do:
69 # config :ex_aws, :s3,
70 # host: "s3.wasabisys.com"
72 config :joken, default_signer: "<%= jwt_secret %>"