d44c324caac9ed06af40471c27595aa90dfc1a5a
[anni] / 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 import Config
7
8 config :pleroma, Pleroma.Web.Endpoint,
9    url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
10    http: [ip: {<%= String.replace(listen_ip, ".", ", ") %>}, port: <%= listen_port %>],
11    secret_key_base: "<%= secret %>",
12    live_view: [signing_salt: "<%= lv_signing_salt %>"],
13    signing_salt: "<%= signing_salt %>"
14
15 config :pleroma, :instance,
16   name: "<%= name %>",
17   email: "<%= email %>",
18   notify_email: "<%= notify_email %>",
19   limit: 5000,
20   registrations_open: true
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
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, :database, rum_enabled: <%= rum_enabled %>
41 config :pleroma, :instance, static_dir: "<%= static_dir %>"
42 config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
43
44 # Enable Strict-Transport-Security once SSL is working:
45 # config :pleroma, :http_security,
46 #   sts: true
47
48 # Configure S3 support if desired.
49 # The public S3 endpoint (base_url) is different depending on region and provider,
50 # consult your S3 provider's documentation for details on what to use.
51 #
52 # config :pleroma, Pleroma.Upload,
53 #  uploader: Pleroma.Uploaders.S3,
54 #  base_url: "https://s3.amazonaws.com"
55 #
56 # config :pleroma, Pleroma.Uploaders.S3,
57 #   bucket: "some-bucket",
58 #   bucket_namespace: "my-namespace",
59 #   truncated_namespace: nil,
60 #   streaming_enabled: true
61 #
62 # Configure S3 credentials:
63 # config :ex_aws, :s3,
64 #   access_key_id: "xxxxxxxxxxxxx",
65 #   secret_access_key: "yyyyyyyyyyyy",
66 #   region: "us-east-1",
67 #   scheme: "https://"
68 #
69 # For using third-party S3 clones like wasabi, also do:
70 # config :ex_aws, :s3,
71 #   host: "s3.wasabisys.com"
72
73 config :joken, default_signer: "<%= jwt_secret %>"
74
75 config :pleroma, configurable_from_database: <%= db_configurable? %>
76
77 <%= if Kernel.length(upload_filters) > 0 do
78 "config :pleroma, Pleroma.Upload, filters: #{inspect(upload_filters)}"
79 end %>