Fixes for dynamic configuration
[akkoma] / lib / mix / tasks / pleroma / 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 use Mix.Config
7
8 config :pleroma, Pleroma.Web.Endpoint,
9 url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
10 secret_key_base: "<%= secret %>",
11 signing_salt: "<%= signing_salt %>"
12
13 config :pleroma, :instance,
14 name: "<%= name %>",
15 email: "<%= email %>",
16 notify_email: "<%= notify_email %>",
17 limit: 5000,
18 registrations_open: true,
19 dedupe_media: false,
20 dynamic_configuration: <%= db_configurable? %>
21
22 config :pleroma, :media_proxy,
23 enabled: false,
24 redirect_on_failure: true
25 #base_url: "https://cache.pleroma.social"
26
27 config :pleroma, Pleroma.Repo,
28 adapter: Ecto.Adapters.Postgres,
29 username: "<%= dbuser %>",
30 password: "<%= dbpass %>",
31 database: "<%= dbname %>",
32 hostname: "<%= dbhost %>",
33 pool_size: 10
34
35 # Configure web push notifications
36 config :web_push_encryption, :vapid_details,
37 subject: "mailto:<%= email %>",
38 public_key: "<%= web_push_public_key %>",
39 private_key: "<%= web_push_private_key %>"
40
41 # Enable Strict-Transport-Security once SSL is working:
42 # config :pleroma, :http_security,
43 # sts: true
44
45 # Configure S3 support if desired.
46 # The public S3 endpoint is different depending on region and provider,
47 # consult your S3 provider's documentation for details on what to use.
48 #
49 # config :pleroma, Pleroma.Uploaders.S3,
50 # bucket: "some-bucket",
51 # public_endpoint: "https://s3.amazonaws.com"
52 #
53 # Configure S3 credentials:
54 # config :ex_aws, :s3,
55 # access_key_id: "xxxxxxxxxxxxx",
56 # secret_access_key: "yyyyyyyyyyyy",
57 # region: "us-east-1",
58 # scheme: "https://"
59 #
60 # For using third-party S3 clones like wasabi, also do:
61 # config :ex_aws, :s3,
62 # host: "s3.wasabisys.com"
63
64
65 # Configure Openstack Swift support if desired.
66 #
67 # Many openstack deployments are different, so config is left very open with
68 # no assumptions made on which provider you're using. This should allow very
69 # wide support without needing separate handlers for OVH, Rackspace, etc.
70 #
71 # config :pleroma, Pleroma.Uploaders.Swift,
72 # container: "some-container",
73 # username: "api-username-yyyy",
74 # password: "api-key-xxxx",
75 # tenant_id: "<openstack-project/tenant-id>",
76 # auth_url: "https://keystone-endpoint.provider.com",
77 # storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
78 # object_url: "https://cdn-endpoint.provider.com/<container>"
79 #