Deprecate Pleroma.Uploaders.S3, :public_endpoint
[akkoma] / priv / templates / sample_config.eex
1 # Pleroma instance configuration
2
3 # NOTE: This file should not be committed to a repo or otherwise made public
4 # without removing sensitive information.
5
6 <%= if Code.ensure_loaded?(Config) or not Code.ensure_loaded?(Mix.Config) do
7 "import Config"
8 else
9 "use Mix.Config"
10 end %>
11
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 %>"
17
18 config :pleroma, :instance,
19 name: "<%= name %>",
20 email: "<%= email %>",
21 notify_email: "<%= notify_email %>",
22 limit: 5000,
23 registrations_open: true
24
25 config :pleroma, :media_proxy,
26 enabled: false,
27 redirect_on_failure: true
28 #base_url: "https://cache.pleroma.social"
29
30 config :pleroma, Pleroma.Repo,
31 adapter: Ecto.Adapters.Postgres,
32 username: "<%= dbuser %>",
33 password: "<%= dbpass %>",
34 database: "<%= dbname %>",
35 hostname: "<%= dbhost %>"
36
37 # Configure web push notifications
38 config :web_push_encryption, :vapid_details,
39 subject: "mailto:<%= email %>",
40 public_key: "<%= web_push_public_key %>",
41 private_key: "<%= web_push_private_key %>"
42
43 config :pleroma, :database, rum_enabled: <%= rum_enabled %>
44 config :pleroma, :instance, static_dir: "<%= static_dir %>"
45 config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
46
47 # Enable Strict-Transport-Security once SSL is working:
48 # config :pleroma, :http_security,
49 # sts: true
50
51 # Configure S3 support if desired.
52 # The public S3 endpoint (base_url) is different depending on region and provider,
53 # consult your S3 provider's documentation for details on what to use.
54 #
55 # config :pleroma, Pleroma.Upload,
56 # uploader: Pleroma.Uploaders.S3,
57 # base_url: "https://s3.amazonaws.com"
58 #
59 # config :pleroma, Pleroma.Uploaders.S3,
60 # bucket: "some-bucket",
61 # bucket_namespace: "my-namespace",
62 # truncated_namespace: false,
63 # streaming_enabled: true
64 #
65 # Configure S3 credentials:
66 # config :ex_aws, :s3,
67 # access_key_id: "xxxxxxxxxxxxx",
68 # secret_access_key: "yyyyyyyyyyyy",
69 # region: "us-east-1",
70 # scheme: "https://"
71 #
72 # For using third-party S3 clones like wasabi, also do:
73 # config :ex_aws, :s3,
74 # host: "s3.wasabisys.com"
75
76 config :joken, default_signer: "<%= jwt_secret %>"
77
78 config :pleroma, configurable_from_database: <%= db_configurable? %>
79
80 <%= if Kernel.length(upload_filters) > 0 do
81 "config :pleroma, Pleroma.Upload, filters: #{inspect(upload_filters)}"
82 end %>