77 lines
No EOL
2.5 KiB
Elixir
77 lines
No EOL
2.5 KiB
Elixir
# Pleroma instance configuration
|
|
|
|
# NOTE: This file should not be committed to a repo or otherwise made public
|
|
# without removing sensitive information.
|
|
|
|
import Config
|
|
|
|
config :pleroma, Pleroma.Web.Endpoint,
|
|
url: [host: System.get_env("DOMAIN", "localhost"), scheme: "https", port: 443],
|
|
http: [ip: {0, 0, 0, 0}, port: 4000],
|
|
secret_key_base: System.get_env("SECRET_KEY_BASE"),
|
|
signing_salt: System.get_env("SIGNING_SALT")
|
|
|
|
config :pleroma, :instance,
|
|
name: System.get_env("INSTANCE_NAME", "Pleroma"),
|
|
email: System.get_env("ADMIN_EMAIL"),
|
|
notify_email: System.get_env("NOTIFY_EMAIL"),
|
|
limit: 5000,
|
|
registrations_open: false,
|
|
invites_enabled: true,
|
|
healthcheck: true
|
|
|
|
config :pleroma, :http, proxy_url: {:socks5h, "10.8.1.1", 1080}
|
|
|
|
config :pleroma, :media_proxy,
|
|
enabled: false,
|
|
redirect_on_failure: true
|
|
#base_url: "https://cache.pleroma.social"
|
|
|
|
config :pleroma, Pleroma.Repo,
|
|
adapter: Ecto.Adapters.Postgres,
|
|
username: System.get_env("DB_USER", "pleroma"),
|
|
password: System.get_env("DB_PASS"),
|
|
database: System.get_env("DB_NAME", "pleroma"),
|
|
hostname: System.get_env("DB_HOST", "db")
|
|
|
|
# Configure web push notifications
|
|
config :web_push_encryption, :vapid_details,
|
|
subject: "mailto:#{System.get_env("NOTIFY_EMAIL")}",
|
|
public_key: System.get_env("WEB_PUSH_PUBLIC_KEY"),
|
|
private_key: System.get_env("WEB_PUSH_PRIVATE_KEY")
|
|
|
|
config :pleroma, :database, rum_enabled: false
|
|
config :pleroma, :instance, static_dir: "/var/lib/pleroma/static"
|
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
|
|
|
|
# Enable Strict-Transport-Security once SSL is working:
|
|
# config :pleroma, :http_security,
|
|
# sts: true
|
|
|
|
# Configure S3 support if desired.
|
|
# The public S3 endpoint (base_url) is different depending on region and provider,
|
|
# consult your S3 provider's documentation for details on what to use.
|
|
#
|
|
config :pleroma, Pleroma.Upload,
|
|
uploader: Pleroma.Uploaders.S3,
|
|
base_url: "https://media.darkdork.dev"
|
|
|
|
config :pleroma, Pleroma.Uploaders.S3,
|
|
bucket: "pleroma.darkdork.dev",
|
|
bucket_namespace: nil,
|
|
truncated_namespace: "",
|
|
streaming_enabled: false
|
|
|
|
# Configure S3 credentials:
|
|
config :ex_aws, :s3,
|
|
access_key_id: System.get_env("S3_ACCESS_KEY"),
|
|
secret_access_key: System.get_env("S3_SECRET_KEY"),
|
|
scheme: "http://",
|
|
host: "minio",
|
|
port: 80
|
|
|
|
config :joken, default_signer: System.get_env("DEFAULT_SIGNER")
|
|
|
|
config :pleroma, configurable_from_database: false
|
|
|
|
config :pleroma, Pleroma.Upload, filters: [Pleroma.Upload.Filter.Exiftool.StripLocation, Pleroma.Upload.Filter.Dedupe] |