roles/pleroma-otp/templates/config.exs.j2
changeset 84 d0c40727e6ff
parent 79 a0cef9f1866e
child 85 dcfd23308c32
equal deleted inserted replaced
83:ccd5604f5b69 84:d0c40727e6ff
       
     1 use Mix.Config
       
     2 
       
     3 config :pleroma, Pleroma.Web.Endpoint,
       
     4   url: [host: "{{pleroma_link_host}}", scheme: "{{pleroma_link_scheme}}", port: {{pleroma_link_port}}],
       
     5   http: [port: {{pleroma_port}}, ip: {127, 0, 0, 1}],
       
     6   secret_key_base: "{{pleroma_secret_key}}",
       
     7   secure_cookie_flag: true
       
     8 
       
     9 config :pleroma, :http_security,
       
    10   enabled: true,
       
    11   sts: true,
       
    12   referrer_policy: "same-origin"
       
    13 
       
    14 config :pleroma, :instance,
       
    15   name: "{{pleroma_instance_name}}",
       
    16   description: "{{pleroma_desc}}",
       
    17   email: "{{pleroma_admin_email}}",
       
    18   limit: {{pleroma_char_limit}},
       
    19   registrations_open: {{pleroma_signup_open}},
       
    20   invites_enabled: {{pleroma_invites_enabled}}
       
    21 
       
    22 config :pleroma, Pleroma.Upload,
       
    23   uploader: Pleroma.Uploaders.Local,
       
    24   filters: [Pleroma.Upload.Filter.Dedupe]
       
    25 
       
    26 config :pleroma, Pleroma.Uploaders.Local,
       
    27   uploads: "{{pleroma_data_dir}}/{{pleroma_instance}}/"
       
    28 
       
    29 config :pleroma, :media_proxy,
       
    30   enabled: false,
       
    31   redirect_on_failure: true
       
    32   #base_url: "https://cache.pleroma.social"
       
    33 
       
    34 # Configure your database
       
    35 config :pleroma, Pleroma.Repo,
       
    36   adapter: Ecto.Adapters.Postgres,
       
    37   username: "{{pleroma_db_user}}",
       
    38   password: "{{pleroma_db_passwd}}",
       
    39   database: "{{pleroma_db}}",
       
    40   hostname: "{{pleroma_db_host}}",
       
    41   pool_size: 10,
       
    42   timeout: 60000,
       
    43   pool_timeout: 60000