Merge branch 'move-sample-configs' 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 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 dynamic_configuration: <%= db_configurable? %>
20
21 config :pleroma, :media_proxy,
22 enabled: false,
23 redirect_on_failure: true
24 #base_url: "https://cache.pleroma.social"
25
26 config :pleroma, Pleroma.Repo,
27 adapter: Ecto.Adapters.Postgres,
28 username: "<%= dbuser %>",
29 password: "<%= dbpass %>",
30 database: "<%= dbname %>",
31 hostname: "<%= dbhost %>",
32 pool_size: 10
33
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 %>"
39
40 config :pleroma, :instance, static_dir: "<%= static_dir %>"
41 config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
42
43 # Enable Strict-Transport-Security once SSL is working:
44 # config :pleroma, :http_security,
45 # sts: true
46
47 # Configure S3 support if desired.
48 # The public S3 endpoint is different depending on region and provider,
49 # consult your S3 provider's documentation for details on what to use.
50 #
51 # config :pleroma, Pleroma.Uploaders.S3,
52 # bucket: "some-bucket",
53 # public_endpoint: "https://s3.amazonaws.com"
54 #
55 # Configure S3 credentials:
56 # config :ex_aws, :s3,
57 # access_key_id: "xxxxxxxxxxxxx",
58 # secret_access_key: "yyyyyyyyyyyy",
59 # region: "us-east-1",
60 # scheme: "https://"
61 #
62 # For using third-party S3 clones like wasabi, also do:
63 # config :ex_aws, :s3,
64 # host: "s3.wasabisys.com"
65
66
67 # Configure Openstack Swift support if desired.
68 #
69 # Many openstack deployments are different, so config is left very open with
70 # no assumptions made on which provider you're using. This should allow very
71 # wide support without needing separate handlers for OVH, Rackspace, etc.
72 #
73 # config :pleroma, Pleroma.Uploaders.Swift,
74 # container: "some-container",
75 # username: "api-username-yyyy",
76 # password: "api-key-xxxx",
77 # tenant_id: "<openstack-project/tenant-id>",
78 # auth_url: "https://keystone-endpoint.provider.com",
79 # storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
80 # object_url: "https://cdn-endpoint.provider.com/<container>"
81 #