2020-07-28 10:41:07 -05:00
|
|
|
# WARNING: THIS FILE CONTAINS SENSITIVE INFORMATION
|
|
|
|
import Config
|
|
|
|
|
2020-07-28 11:59:18 -05:00
|
|
|
# Basic configuration
|
2020-07-28 10:41:07 -05:00
|
|
|
config :pleroma, Pleroma.Web.Endpoint,
|
|
|
|
url: [host: "{{ pleroma_url }}", scheme: "https", port: 443],
|
|
|
|
http: [ip: {127, 0, 0, 1}, port: 4000],
|
|
|
|
secret_key_base: "{{ pleroma_secret_key_base }}",
|
|
|
|
signing_salt: "{{ pleroma_signing_salt }}"
|
|
|
|
config :pleroma, :instance,
|
|
|
|
name: "{{ pleroma_instance_name }}",
|
|
|
|
desc: "{{ pleroma_instance_desc }}",
|
|
|
|
email: "{{ pleroma_instance_email }}",
|
|
|
|
notify_email: "{{ pleroma_instance_notify_email }}",
|
|
|
|
limit: "{{ pleroma_char_limit }}",
|
2020-07-28 11:23:25 -05:00
|
|
|
registrations_open: {{ pleroma_openreg }},
|
2020-07-28 10:41:07 -05:00
|
|
|
static_dir: "/var/lib/pleroma/static"
|
|
|
|
config :pleroma, Pleroma.Upload,
|
|
|
|
uploader: Pleroma.Uploaders.Local,
|
|
|
|
filters: [Pleroma.Upload.Filter.Dedupe]
|
|
|
|
config :pleroma, Pleroma.Uploaders.Local,
|
|
|
|
uploads: "/var/lib/pleroma/uploads"
|
|
|
|
config :pleroma, :media_proxy,
|
|
|
|
enabled: false,
|
|
|
|
redirect_on_failure: true
|
|
|
|
|
2020-07-28 11:59:18 -05:00
|
|
|
# DB configuration
|
2020-07-28 10:41:07 -05:00
|
|
|
config :pleroma, Pleroma.Repo,
|
|
|
|
adapter: Ecto.Adapters.Postgres,
|
|
|
|
username: "pleroma",
|
|
|
|
password: "{{ pleroma_db_password }}",
|
|
|
|
database: "pleroma",
|
2020-08-01 18:35:38 -05:00
|
|
|
hostname: "{{ pleroma_db_hostname }}",
|
2020-07-28 10:41:07 -05:00
|
|
|
pool_size: 10
|
|
|
|
config :pleroma, :database, rum_enabled: false
|
2020-07-28 11:23:25 -05:00
|
|
|
|
2020-07-28 11:59:18 -05:00
|
|
|
# Mail
|
2020-07-28 11:23:25 -05:00
|
|
|
config :pleroma, Pleroma.Emails.Mailer,
|
|
|
|
enabled: true,
|
|
|
|
adapter: Swoosh.Adapters.SMTP,
|
|
|
|
relay: "email-smtp.us-east-1.amazonaws.com",
|
|
|
|
username: "{{ aws_ses_user }}",
|
|
|
|
password: "{{ aws_ses_pass }}",
|
|
|
|
ssl: true,
|
|
|
|
auth: :always
|
2020-07-28 11:59:18 -05:00
|
|
|
|
|
|
|
# Themeing
|
|
|
|
config :pleroma, :frontend_configurations,
|
|
|
|
pleroma_fe: %{
|
|
|
|
background: "/images/background.jpg",
|
|
|
|
theme: "simply-dark"
|
|
|
|
}
|