]
# Configures Elixir's Logger
-config :logger, truncate: 65536
+config :logger, truncate: 65_536
config :logger, :console,
level: :info,
name: "Pleroma",
email: "example@example.com",
notify_email: "noreply@example.com",
- description: "Pleroma: An efficient and flexible fediverse server",
+ description: "Akkoma: The cooler fediverse server",
background_image: "/images/city.jpg",
instance_thumbnail: "/instance/thumbnail.jpeg",
limit: 5_000,
remote_fetcher: 2,
attachments_cleanup: 1,
new_users_digest: 1,
- mute_expire: 5
+ mute_expire: 5,
+ search_indexing: 10
],
plugins: [Oban.Plugins.Pruner],
crontab: [
config :pleroma, :workers,
retries: [
federator_incoming: 5,
- federator_outgoing: 5
+ federator_outgoing: 5,
+ search_indexing: 2
]
config :pleroma, Pleroma.Formatter,
uid: System.get_env("LDAP_UID") || "cn"
oauth_consumer_strategies =
- System.get_env("OAUTH_CONSUMER_STRATEGIES")
+ "OAUTH_CONSUMER_STRATEGIES"
+ |> System.get_env()
|> to_string()
|> String.split()
|> Enum.map(&hd(String.split(&1, ":")))
# config :pleroma, :frontends,
# primary: %{"name" => "pleroma-fe", "ref" => "develop"},
# admin: %{"name" => "admin-fe", "ref" => "stable"},
+# mastodon: %{"enabled" => true, "name" => "mastodon-fe", "ref" => "develop"}
# available: %{...}
config :pleroma, :frontends,
available: %{
- "kenoma" => %{
- "name" => "kenoma",
- "git" => "https://git.pleroma.social/lambadalambda/kenoma",
- "build_url" =>
- "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
- "ref" => "master"
- },
"pleroma-fe" => %{
"name" => "pleroma-fe",
"git" => "https://akkoma.dev/AkkomaGang/pleroma-fe",
"ref" => "develop",
"build_dir" => "dist"
},
- "fedi-fe" => %{
- "name" => "fedi-fe",
- "git" => "https://git.pleroma.social/pleroma/fedi-fe",
- "build_url" =>
- "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
- "ref" => "master",
- "custom-http-headers" => [
- {"service-worker-allowed", "/"}
- ]
+ # mastodon-Fe cannot be set as a primary - this is only here so we can update this seperately
+ "mastodon-fe" => %{
+ "name" => "mastodon-fe",
+ "git" => "https://akkoma.dev/AkkomaGang/masto-fe",
+ "build_url" => "https://akkoma-updates.s3-website.fr-par.scw.cloud/frontend/masto-fe.zip",
+ "build_dir" => "distribution",
+ "ref" => "develop"
},
"admin-fe" => %{
"name" => "admin-fe",
- "git" => "https://git.pleroma.social/pleroma/admin-fe",
- "build_url" =>
- "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
+ "git" => "https://akkoma.dev/AkkomaGang/admin-fe",
+ "build_url" => "https://akkoma-updates.s3-website.fr-par.scw.cloud/frontend/admin-fe.zip",
"ref" => "develop"
},
"soapbox-fe" => %{
{Pleroma.Search, [max_running: 30, max_waiting: 50]}
]
-config :pleroma, :search, provider: Pleroma.Search.Builtin
-
config :pleroma, Pleroma.Search, module: Pleroma.Search.DatabaseSearch
-config :pleroma, Pleroma.Search.Meilisearch, url: "http://127.0.0.1:7700/", private_key: nil
+config :pleroma, Pleroma.Search.Meilisearch,
+ url: "http://127.0.0.1:7700/",
+ private_key: nil,
+ initial_indexing_chunk_size: 100_000
+
+config :pleroma, Pleroma.Search.Elasticsearch.Cluster,
+ url: "http://localhost:9200",
+ username: "elastic",
+ password: "changeme",
+ api: Elasticsearch.API.HTTP,
+ json_library: Jason,
+ indexes: %{
+ activities: %{
+ settings: "priv/es-mappings/activity.json",
+ store: Pleroma.Search.Elasticsearch.Store,
+ sources: [Pleroma.Activity],
+ bulk_page_size: 1000,
+ bulk_wait_interval: 15_000
+ }
+ }
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.