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