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