1 # Pleroma instance configuration
3 # NOTE: This file should not be committed to a repo or otherwise made public
4 # without removing sensitive information.
8 config :pleroma, Pleroma.Web.Endpoint,
9 url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
10 http: [ip: {<%= String.replace(listen_ip, ".", ", ") %>}, port: <%= listen_port %>],
11 secret_key_base: "<%= secret %>",
12 live_view: [signing_salt: "<%= lv_signing_salt %>"],
13 signing_salt: "<%= signing_salt %>"
15 config :pleroma, :instance,
17 email: "<%= email %>",
18 notify_email: "<%= notify_email %>",
20 registrations_open: true
22 config :pleroma, :media_proxy,
24 redirect_on_failure: true
25 #base_url: "https://cache.pleroma.social"
27 config :pleroma, Pleroma.Repo,
28 adapter: Ecto.Adapters.Postgres,
29 username: "<%= dbuser %>",
30 password: "<%= dbpass %>",
31 database: "<%= dbname %>",
32 hostname: "<%= dbhost %>"
34 # Configure web push notifications
35 config :web_push_encryption, :vapid_details,
36 subject: "mailto:<%= email %>",
37 public_key: "<%= web_push_public_key %>",
38 private_key: "<%= web_push_private_key %>"
40 config :pleroma, :database, rum_enabled: <%= rum_enabled %>
41 config :pleroma, :instance, static_dir: "<%= static_dir %>"
42 config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
44 # Enable Strict-Transport-Security once SSL is working:
45 # config :pleroma, :http_security,
48 # Configure S3 support if desired.
49 # The public S3 endpoint (base_url) is different depending on region and provider,
50 # consult your S3 provider's documentation for details on what to use.
52 # config :pleroma, Pleroma.Upload,
53 # uploader: Pleroma.Uploaders.S3,
54 # base_url: "https://s3.amazonaws.com"
56 # config :pleroma, Pleroma.Uploaders.S3,
57 # bucket: "some-bucket",
58 # bucket_namespace: "my-namespace",
59 # truncated_namespace: nil,
60 # streaming_enabled: true
62 # Configure S3 credentials:
63 # config :ex_aws, :s3,
64 # access_key_id: "xxxxxxxxxxxxx",
65 # secret_access_key: "yyyyyyyyyyyy",
66 # region: "us-east-1",
69 # For using third-party S3 clones like wasabi, also do:
70 # config :ex_aws, :s3,
71 # host: "s3.wasabisys.com"
73 config :joken, default_signer: "<%= jwt_secret %>"
75 config :pleroma, configurable_from_database: <%= db_configurable? %>
77 <%= if Kernel.length(upload_filters) > 0 do
78 "config :pleroma, Pleroma.Upload, filters: #{inspect(upload_filters)}"