source: darkpeak-services/roles/pleroma/templates/config.exs @ 25ab2622

keycloakpleroma
Last change on this file since 25ab2622 was 25ab2622, checked in by Caolan McMahon <caolan.mcmahon@…>, 2 years ago

pleroma: set http port to match ansible variable

  • Property mode set to 100644
File size: 2.5 KB
Line 
1use Mix.Config
2
3config :pleroma, Pleroma.Web.Endpoint,
4   url: [host: "{{ domain }}", scheme: "https", port: 443],
5   secret_key_base: "{{ pleroma_secret_key_base }}"
6
7config :pleroma, :instance,
8  name: "{{ pleroma_instance_name }}",
9  email: "{{ pleroma_admin_email }}",
10  limit: 5000,
11  registrations_open: {{ pleroma_registrations_open }},
12  dedupe_media: false
13
14config :pleroma, :media_proxy,
15  enabled: false,
16  redirect_on_failure: true
17  #base_url: "https://cache.pleroma.social"
18
19# Configure your database
20config :pleroma, Pleroma.Repo,
21  adapter: Ecto.Adapters.Postgres,
22  username: "{{ postgresql_users[0].name }}",
23  password: "{{ pleroma_postgresql_password }}",
24  database: "{{ postgresql_databases[0].name }}",
25  hostname: "localhost",
26  pool_size: 10
27
28# Configure user matching using third party service.
29# This populates the 'Who to follow' panel
30config :pleroma, :suggestions,
31  enabled: true
32
33config :pleroma, Pleroma.Uploaders.Local,
34  # where to put the uploaded files, relative to pleroma's main directory
35  uploads: "{{ web_root }}/uploads",
36  # whether or not to remove EXIF data from uploaded pics automatically
37  # this needs Imagemagick installed on the system
38  strip_exif: true
39
40config :pleroma, Pleroma.Web.Endpoint,
41  http: [port: {{ pleroma_http_port }}],
42  protocol: "http"
43
44# Configure S3 support if desired.
45# The public S3 endpoint is different depending on region and provider,
46# consult your S3 provider's documentation for details on what to use.
47#
48# config :pleroma, Pleroma.Uploaders.S3,
49#   bucket: "some-bucket",
50#   public_endpoint: "https://s3.amazonaws.com"
51#
52# Configure S3 credentials:
53# config :ex_aws, :s3,
54#   access_key_id: "xxxxxxxxxxxxx",
55#   secret_access_key: "yyyyyyyyyyyy",
56#   region: "us-east-1",
57#   scheme: "https://"
58#
59# For using third-party S3 clones like wasabi, also do:
60# config :ex_aws, :s3,
61#   host: "s3.wasabisys.com"
62
63
64# Configure Openstack Swift support if desired.
65#
66# Many openstack deployments are different, so config is left very open with
67# no assumptions made on which provider you're using. This should allow very
68# wide support without needing separate handlers for OVH, Rackspace, etc.
69#
70# config :pleroma, Pleroma.Uploaders.Swift,
71#  container: "some-container",
72#  username: "api-username-yyyy",
73#  password: "api-key-xxxx",
74#  tenant_id: "<openstack-project/tenant-id>",
75#  auth_url: "https://keystone-endpoint.provider.com",
76#  storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
77#  object_url: "https://cdn-endpoint.provider.com/<container>"
78#
Note: See TracBrowser for help on using the repository browser.