2020-10-19 01:01:59 +02:00
|
|
|
# Mobilizon instance configuration
|
|
|
|
|
|
|
|
import Config
|
|
|
|
|
|
|
|
config :mobilizon, Mobilizon.Web.Endpoint,
|
2020-10-22 15:19:01 +02:00
|
|
|
server: true,
|
2020-10-19 01:01:59 +02:00
|
|
|
url: [host: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.lan")],
|
2021-01-19 10:19:22 +01:00
|
|
|
http: [port: System.get_env("MOBILIZON_INSTANCE_PORT", "4000")],
|
2020-10-22 15:19:01 +02:00
|
|
|
secret_key_base: System.get_env("MOBILIZON_INSTANCE_SECRET_KEY_BASE", "changethis")
|
2020-10-19 01:01:59 +02:00
|
|
|
|
|
|
|
config :mobilizon, Mobilizon.Web.Auth.Guardian,
|
2020-10-22 15:19:01 +02:00
|
|
|
secret_key: System.get_env("MOBILIZON_INSTANCE_SECRET_KEY", "changethis")
|
2020-10-19 01:01:59 +02:00
|
|
|
|
|
|
|
config :mobilizon, :instance,
|
|
|
|
name: System.get_env("MOBILIZON_INSTANCE_NAME", "Mobilizon"),
|
|
|
|
description: "Change this to a proper description of your instance",
|
|
|
|
hostname: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.lan"),
|
2020-10-30 15:14:26 +01:00
|
|
|
registrations_open: System.get_env("MOBILIZON_INSTANCE_REGISTRATIONS_OPEN", "false") == "true",
|
2020-10-19 01:01:59 +02:00
|
|
|
demo: false,
|
|
|
|
allow_relay: true,
|
|
|
|
federating: true,
|
|
|
|
email_from: System.get_env("MOBILIZON_INSTANCE_EMAIL", "noreply@mobilizon.lan"),
|
2020-10-22 15:19:01 +02:00
|
|
|
email_reply_to: System.get_env("MOBILIZON_REPLY_EMAIL", "noreply@mobilizon.lan")
|
2020-10-19 01:01:59 +02:00
|
|
|
|
2020-10-31 02:39:32 +01:00
|
|
|
|
|
|
|
config :mobilizon, Mobilizon.Web.Upload.Uploader.Local,
|
|
|
|
uploads: System.get_env("MOBILIZON_UPLOADS", "/app/uploads")
|
|
|
|
|
|
|
|
|
2020-10-19 01:01:59 +02:00
|
|
|
config :mobilizon, Mobilizon.Storage.Repo,
|
|
|
|
adapter: Ecto.Adapters.Postgres,
|
|
|
|
username: System.get_env("MOBILIZON_DATABASE_USERNAME", "username"),
|
|
|
|
password: System.get_env("MOBILIZON_DATABASE_PASSWORD", "password"),
|
|
|
|
database: System.get_env("MOBILIZON_DATABASE_DBNAME", "mobilizon"),
|
|
|
|
hostname: System.get_env("MOBILIZON_DATABASE_HOST", "postgres"),
|
2020-10-27 19:09:10 +01:00
|
|
|
port: 5432,
|
2020-10-19 01:01:59 +02:00
|
|
|
pool_size: 10
|
|
|
|
|
|
|
|
config :mobilizon, Mobilizon.Web.Email.Mailer,
|
|
|
|
adapter: Bamboo.SMTPAdapter,
|
2020-10-22 15:19:01 +02:00
|
|
|
server: System.get_env("MOBILIZON_SMTP_SERVER", "localhost"),
|
|
|
|
hostname: System.get_env("MOBILIZON_SMTP_HOSTNAME", "localhost"),
|
|
|
|
port: System.get_env("MOBILIZON_SMTP_PORT", "25"),
|
|
|
|
username: System.get_env("MOBILIZON_SMTP_USERNAME", nil),
|
|
|
|
password: System.get_env("MOBILIZON_SMTP_PASSWORD", nil),
|
2020-10-19 01:01:59 +02:00
|
|
|
tls: :if_available,
|
|
|
|
allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"],
|
2020-10-22 15:19:01 +02:00
|
|
|
ssl: System.get_env("MOBILIZON_SMTP_SSL", "false"),
|
2020-10-19 01:01:59 +02:00
|
|
|
retries: 1,
|
|
|
|
no_mx_lookups: false,
|
|
|
|
auth: :if_available
|