roles/pleroma-otp/templates/config.exs.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 19 Jan 2020 13:41:08 -0600
changeset 84 d0c40727e6ff
parent 79 roles/pleroma/templates/prod.secret.exs.j2@a0cef9f1866e
child 85 dcfd23308c32
permissions -rw-r--r--
Added WIP pleroma OTP role.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
use Mix.Config
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
config :pleroma, Pleroma.Web.Endpoint,
79
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
     4
  url: [host: "{{pleroma_link_host}}", scheme: "{{pleroma_link_scheme}}", port: {{pleroma_link_port}}],
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
     5
  http: [port: {{pleroma_port}}, ip: {127, 0, 0, 1}],
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
     6
  secret_key_base: "{{pleroma_secret_key}}",
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
     7
  secure_cookie_flag: true
78
18b6a82be777 Added hardening settings.
Luke Hoersten <luke@hoersten.org>
parents: 75
diff changeset
     8
18b6a82be777 Added hardening settings.
Luke Hoersten <luke@hoersten.org>
parents: 75
diff changeset
     9
config :pleroma, :http_security,
79
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
    10
  enabled: true,
78
18b6a82be777 Added hardening settings.
Luke Hoersten <luke@hoersten.org>
parents: 75
diff changeset
    11
  sts: true,
18b6a82be777 Added hardening settings.
Luke Hoersten <luke@hoersten.org>
parents: 75
diff changeset
    12
  referrer_policy: "same-origin"
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
config :pleroma, :instance,
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
  name: "{{pleroma_instance_name}}",
64
2b0d305daa43 Moved to prod config.
Luke Hoersten <luke@hoersten.org>
parents: 62
diff changeset
    16
  description: "{{pleroma_desc}}",
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    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
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
    19
  registrations_open: {{pleroma_signup_open}},
a0cef9f1866e Minor udpates.
Luke Hoersten <luke@hoersten.org>
parents: 78
diff changeset
    20
  invites_enabled: {{pleroma_invites_enabled}}
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    21
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    22
config :pleroma, Pleroma.Upload,
84
d0c40727e6ff Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents: 79
diff changeset
    23
  uploader: Pleroma.Uploaders.Local,
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    24
  filters: [Pleroma.Upload.Filter.Dedupe]
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
84
d0c40727e6ff Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents: 79
diff changeset
    26
config :pleroma, Pleroma.Uploaders.Local,
d0c40727e6ff Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents: 79
diff changeset
    27
  uploads: "{{pleroma_data_dir}}/{{pleroma_instance}}/"
d0c40727e6ff Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents: 79
diff changeset
    28
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
config :pleroma, :media_proxy,
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
  enabled: false,
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
  redirect_on_failure: true
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
  #base_url: "https://cache.pleroma.social"
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
# Configure your database
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    35
config :pleroma, Pleroma.Repo,
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    36
  adapter: Ecto.Adapters.Postgres,
84
d0c40727e6ff Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents: 79
diff changeset
    37
  username: "{{pleroma_db_user}}",
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    38
  password: "{{pleroma_db_passwd}}",
84
d0c40727e6ff Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents: 79
diff changeset
    39
  database: "{{pleroma_db}}",
62
63586cf10d46 Added more config variables to pleroma.
Luke Hoersten <luke@hoersten.org>
parents: 60
diff changeset
    40
  hostname: "{{pleroma_db_host}}",
75
d8c87a41cc6d Pleroma role updates. Added Postgresql role.
Luke Hoersten <luke@hoersten.org>
parents: 69
diff changeset
    41
  pool_size: 10,
d8c87a41cc6d Pleroma role updates. Added Postgresql role.
Luke Hoersten <luke@hoersten.org>
parents: 69
diff changeset
    42
  timeout: 60000,
d8c87a41cc6d Pleroma role updates. Added Postgresql role.
Luke Hoersten <luke@hoersten.org>
parents: 69
diff changeset
    43
  pool_timeout: 60000