author | Luke Hoersten <luke@hoersten.org> |
Mon, 19 Jul 2021 20:32:56 -0500 | |
changeset 166 | 4ab7efce7321 |
parent 143 | 7d4a477be685 |
child 185 | 11e3b643c6ef |
permissions | -rw-r--r-- |
85
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
1 |
import Config |
60 | 2 |
|
3 |
config :pleroma, Pleroma.Web.Endpoint, |
|
79 | 4 |
url: [host: "{{pleroma_link_host}}", scheme: "{{pleroma_link_scheme}}", port: {{pleroma_link_port}}], |
123
e8d0308b94b2
Added local pleroma prometheus scraping.
Luke Hoersten <luke@hoersten.org>
parents:
109
diff
changeset
|
5 |
http: [port: {{pleroma_port}}, ip: {0, 0, 0, 0}], |
79 | 6 |
secret_key_base: "{{pleroma_secret_key}}", |
7 |
secure_cookie_flag: true |
|
78 | 8 |
|
9 |
config :pleroma, :http_security, |
|
79 | 10 |
enabled: true, |
78 | 11 |
sts: true, |
12 |
referrer_policy: "same-origin" |
|
60 | 13 |
|
14 |
config :pleroma, :instance, |
|
15 |
name: "{{pleroma_instance_name}}", |
|
64 | 16 |
description: "{{pleroma_desc}}", |
60 | 17 |
email: "{{pleroma_admin_email}}", |
62
63586cf10d46
Added more config variables to pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
60
diff
changeset
|
18 |
limit: {{pleroma_char_limit}}, |
79 | 19 |
registrations_open: {{pleroma_signup_open}}, |
85
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
20 |
invites_enabled: {{pleroma_invites_enabled}}, |
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
21 |
static_dir: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/" |
69 | 22 |
|
23 |
config :pleroma, Pleroma.Upload, |
|
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
79
diff
changeset
|
24 |
uploader: Pleroma.Uploaders.Local, |
69 | 25 |
filters: [Pleroma.Upload.Filter.Dedupe] |
60 | 26 |
|
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
79
diff
changeset
|
27 |
config :pleroma, Pleroma.Uploaders.Local, |
85
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
28 |
uploads: "{{pleroma_data_dir}}/{{pleroma_instance}}/uploads/" |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
79
diff
changeset
|
29 |
|
60 | 30 |
config :pleroma, :media_proxy, |
109
646e4b395cc8
Added pleroma backup cleanup and mediaproxy.
Luke Hoersten <luke@hoersten.org>
parents:
103
diff
changeset
|
31 |
enabled: true, |
60 | 32 |
redirect_on_failure: true |
33 |
||
34 |
config :pleroma, Pleroma.Repo, |
|
35 |
adapter: Ecto.Adapters.Postgres, |
|
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
79
diff
changeset
|
36 |
username: "{{pleroma_db_user}}", |
60 | 37 |
password: "{{pleroma_db_passwd}}", |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
79
diff
changeset
|
38 |
database: "{{pleroma_db}}", |
62
63586cf10d46
Added more config variables to pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
60
diff
changeset
|
39 |
hostname: "{{pleroma_db_host}}", |
75
d8c87a41cc6d
Pleroma role updates. Added Postgresql role.
Luke Hoersten <luke@hoersten.org>
parents:
69
diff
changeset
|
40 |
pool_size: 10, |
109
646e4b395cc8
Added pleroma backup cleanup and mediaproxy.
Luke Hoersten <luke@hoersten.org>
parents:
103
diff
changeset
|
41 |
timeout: 60000 |
139
4efa743f2fa1
Added optional log level change.
Luke Hoersten <luke@hoersten.org>
parents:
123
diff
changeset
|
42 |
|
143
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
139
diff
changeset
|
43 |
config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
139
diff
changeset
|
44 |
enabled: true |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
139
diff
changeset
|
45 |
# ip_whitelist: ["127.0.0.1"], |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
139
diff
changeset
|
46 |
# path: "/api/pleroma/app_metrics", |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
139
diff
changeset
|
47 |
# format: :text |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
139
diff
changeset
|
48 |
|
139
4efa743f2fa1
Added optional log level change.
Luke Hoersten <luke@hoersten.org>
parents:
123
diff
changeset
|
49 |
# config :logger, |
4efa743f2fa1
Added optional log level change.
Luke Hoersten <luke@hoersten.org>
parents:
123
diff
changeset
|
50 |
# backends: [{ExSyslogger, :ex_syslogger}] |
4efa743f2fa1
Added optional log level change.
Luke Hoersten <luke@hoersten.org>
parents:
123
diff
changeset
|
51 |
|
4efa743f2fa1
Added optional log level change.
Luke Hoersten <luke@hoersten.org>
parents:
123
diff
changeset
|
52 |
# config :logger, :ex_syslogger, |
4efa743f2fa1
Added optional log level change.
Luke Hoersten <luke@hoersten.org>
parents:
123
diff
changeset
|
53 |
# level: :debug |