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