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