pleroma-otp/templates/config.exs.j2
changeset 93 976670b2ca63
parent 85 dcfd23308c32
equal deleted inserted replaced
92:d4924111ce28 93:976670b2ca63
       
     1 import 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   static_dir: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
       
    22 
       
    23 config :pleroma, Pleroma.Upload,
       
    24   uploader: Pleroma.Uploaders.Local,
       
    25   filters: [Pleroma.Upload.Filter.Dedupe]
       
    26 
       
    27 config :pleroma, Pleroma.Uploaders.Local,
       
    28   uploads: "{{pleroma_data_dir}}/{{pleroma_instance}}/uploads/"
       
    29 
       
    30 config :pleroma, :media_proxy,
       
    31   enabled: false,
       
    32   redirect_on_failure: true
       
    33   #base_url: "https://cache.pleroma.social"
       
    34 
       
    35 # Configure your database
       
    36 config :pleroma, Pleroma.Repo,
       
    37   adapter: Ecto.Adapters.Postgres,
       
    38   username: "{{pleroma_db_user}}",
       
    39   password: "{{pleroma_db_passwd}}",
       
    40   database: "{{pleroma_db}}",
       
    41   hostname: "{{pleroma_db_host}}",
       
    42   pool_size: 10,
       
    43   timeout: 60000,
       
    44   pool_timeout: 60000