ansible/roles/pleroma/templates/config.exs

56 lines
1.6 KiB
Elixir

# WARNING: THIS FILE CONTAINS SENSITIVE INFORMATION
import Config
# Basic configuration
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.secret.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 }}",
registrations_open: {{ pleroma.openreg }},
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
# Use in-db configs
config :pleroma, configurable_from_database: true
# DB configuration
config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres,
username: "pleroma",
password: "{{ pleroma.db.pass }}",
database: "pleroma",
hostname: "{{ pleroma_db_hostname }}",
pool_size: 10
config :pleroma, :database, rum_enabled: false
# Mail
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
# Themeing
config :pleroma, :frontend_configurations,
pleroma_fe: %{
background: "/images/background.jpg",
theme: "simply-dark"
}