pleroma
70
production/pleroma/docker-compose.yml
Archivo normal
@@ -0,0 +1,70 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
pleroma:
|
||||||
|
build: ./pleroma
|
||||||
|
hostname: pleroma
|
||||||
|
container_name: pleroma
|
||||||
|
restart: always
|
||||||
|
command: mix phx.server
|
||||||
|
volumes:
|
||||||
|
- ./pleroma/config:/pleroma/config
|
||||||
|
- ./pleroma/uploads:/pleroma/uploads
|
||||||
|
- ./pleroma/vm.args.eex:/pleroma/rel/vm.args.eex
|
||||||
|
- ./pleroma/terms-of-service.html:/pleroma/priv/static/static/terms-of-service.html:ro
|
||||||
|
# - ./pleroma/emojis:/pleroma/priv/static/emoji/custom/images:ro
|
||||||
|
# - ./pleroma/images:/pleroma/priv/static/static/images:ro
|
||||||
|
# - ./pleroma/custom_emoji.txt:/pleroma/config/custom_emoji.txt:ro
|
||||||
|
# - ./pleroma/index.html:/pleroma/priv/static/index.html:ro
|
||||||
|
expose:
|
||||||
|
- 4000
|
||||||
|
ports:
|
||||||
|
- "9999:9999/tcp"
|
||||||
|
networks:
|
||||||
|
mynet:
|
||||||
|
ipv4_address: 172.2.0.101
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres
|
||||||
|
hostname: postgres-pleroma
|
||||||
|
container_name: postgres-pleroma
|
||||||
|
restart: always
|
||||||
|
shm_size: '1gb'
|
||||||
|
command: >
|
||||||
|
-c 'max_connections=150'
|
||||||
|
-c 'shared_buffers=512MB'
|
||||||
|
-c 'effective_cache_size=1536MB'
|
||||||
|
-c 'maintenance_work_mem=128MB'
|
||||||
|
-c 'checkpoint_completion_target=0.7'
|
||||||
|
-c 'wal_buffers=16MB'
|
||||||
|
-c 'default_statistics_target=100'
|
||||||
|
-c 'random_page_cost=1.1'
|
||||||
|
-c 'effective_io_concurrency=200'
|
||||||
|
-c 'work_mem=1747kB'
|
||||||
|
-c 'min_wal_size=1GB'
|
||||||
|
-c 'max_wal_size=2GB'
|
||||||
|
-c 'max_worker_processes=4'
|
||||||
|
-c 'max_parallel_workers_per_gather=2'
|
||||||
|
-c 'max_parallel_workers=4'
|
||||||
|
-c 'autovacuum_max_workers=1'
|
||||||
|
-c 'autovacuum_work_mem=128MB'
|
||||||
|
-h '*'
|
||||||
|
# -c 'statement_timeout=60000'
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=postgres
|
||||||
|
- POSTGRES_DB=pleroma
|
||||||
|
- POSTGRES_PASSWORD=pl3r0m4.
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/postgresql/data
|
||||||
|
expose:
|
||||||
|
- 5432
|
||||||
|
networks:
|
||||||
|
mynet:
|
||||||
|
ipv4_address: 172.2.0.102
|
||||||
|
|
||||||
|
networks:
|
||||||
|
mynet:
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.2.0.0/24
|
||||||
27
production/pleroma/pleroma/Dockerfile
Archivo normal
@@ -0,0 +1,27 @@
|
|||||||
|
FROM elixir
|
||||||
|
|
||||||
|
ENV MIX_ENV=prod
|
||||||
|
|
||||||
|
ENV VERSION 7bd4c145
|
||||||
|
|
||||||
|
RUN apt update && apt -y upgrade && apt -y install build-essential git imagemagick && apt clean
|
||||||
|
|
||||||
|
RUN adduser --system --disabled-password --home /pleroma pleroma
|
||||||
|
|
||||||
|
USER pleroma
|
||||||
|
WORKDIR /pleroma
|
||||||
|
|
||||||
|
RUN git clone https://git.pleroma.social/pleroma/pleroma /pleroma \
|
||||||
|
&& mkdir -p /pleroma/uploads
|
||||||
|
|
||||||
|
#RUN git checkout $VERSION
|
||||||
|
|
||||||
|
RUN touch /pleroma/config/prod.secret.exs \
|
||||||
|
&& mix local.rebar --force \
|
||||||
|
&& mix local.hex --force \
|
||||||
|
&& mix deps.get \
|
||||||
|
&& mix deps.compile \
|
||||||
|
&& rm /pleroma/config/prod.secret.exs
|
||||||
|
|
||||||
|
EXPOSE 4000
|
||||||
|
|
||||||
634
production/pleroma/pleroma/config/config.exs
Archivo normal
@@ -0,0 +1,634 @@
|
|||||||
|
# .i;;;;i.
|
||||||
|
# iYcviii;vXY:
|
||||||
|
# .YXi .i1c.
|
||||||
|
# .YC. . in7.
|
||||||
|
# .vc. ...... ;1c.
|
||||||
|
# i7, .. .;1;
|
||||||
|
# i7, .. ... .Y1i
|
||||||
|
# ,7v .6MMM@; .YX,
|
||||||
|
# .7;. ..IMMMMMM1 :t7.
|
||||||
|
# .;Y. ;$MMMMMM9. :tc.
|
||||||
|
# vY. .. .nMMM@MMU. ;1v.
|
||||||
|
# i7i ... .#MM@M@C. .....:71i
|
||||||
|
# it: .... $MMM@9;.,i;;;i,;tti
|
||||||
|
# :t7. ..... 0MMMWv.,iii:::,,;St.
|
||||||
|
# .nC. ..... IMMMQ..,::::::,.,czX.
|
||||||
|
# .ct: ....... .ZMMMI..,:::::::,,:76Y.
|
||||||
|
# c2: ......,i..Y$M@t..:::::::,,..inZY
|
||||||
|
# vov ......:ii..c$MBc..,,,,,,,,,,..iI9i
|
||||||
|
# i9Y ......iii:..7@MA,..,,,,,,,,,....;AA:
|
||||||
|
# iIS. ......:ii::..;@MI....,............;Ez.
|
||||||
|
# .I9. ......:i::::...8M1..................C0z.
|
||||||
|
# .z9; ......:i::::,.. .i:...................zWX.
|
||||||
|
# vbv ......,i::::,,. ................. :AQY
|
||||||
|
# c6Y. .,...,::::,,..:t0@@QY. ................ :8bi
|
||||||
|
# :6S. ..,,...,:::,,,..EMMMMMMI. ............... .;bZ,
|
||||||
|
# :6o, .,,,,..:::,,,..i#MMMMMM#v................. YW2.
|
||||||
|
# .n8i ..,,,,,,,::,,,,.. tMMMMM@C:.................. .1Wn
|
||||||
|
# 7Uc. .:::,,,,,::,,,,.. i1t;,..................... .UEi
|
||||||
|
# 7C...::::::::::::,,,,.. .................... vSi.
|
||||||
|
# ;1;...,,::::::,......... .................. Yz:
|
||||||
|
# v97,......... .voC.
|
||||||
|
# izAotX7777777777777777777777777777777777777777Y7n92:
|
||||||
|
# .;CoIIIIIUAA666666699999ZZZZZZZZZZZZZZZZZZZZ6ov.
|
||||||
|
#
|
||||||
|
# !!! ATTENTION !!!
|
||||||
|
# DO NOT EDIT THIS FILE! THIS FILE CONTAINS THE DEFAULT VALUES FOR THE CON-
|
||||||
|
# FIGURATION! EDIT YOUR SECRET FILE (either prod.secret.exs, dev.secret.exs).
|
||||||
|
#
|
||||||
|
# This file is responsible for configuring your application
|
||||||
|
# and its dependencies with the aid of the Mix.Config module.
|
||||||
|
#
|
||||||
|
# This configuration file is loaded before any dependency and
|
||||||
|
# is restricted to this project.
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# General application configuration
|
||||||
|
config :pleroma, ecto_repos: [Pleroma.Repo]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
types: Pleroma.PostgresTypes,
|
||||||
|
telemetry_event: [Pleroma.Repo.Instrumenter],
|
||||||
|
migration_lock: nil
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Captcha,
|
||||||
|
enabled: true,
|
||||||
|
seconds_valid: 300,
|
||||||
|
method: Pleroma.Captcha.Native
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://captcha.kotobank.ch"
|
||||||
|
|
||||||
|
config :pleroma, :hackney_pools,
|
||||||
|
federation: [
|
||||||
|
max_connections: 50,
|
||||||
|
timeout: 150_000
|
||||||
|
],
|
||||||
|
media: [
|
||||||
|
max_connections: 50,
|
||||||
|
timeout: 150_000
|
||||||
|
],
|
||||||
|
upload: [
|
||||||
|
max_connections: 25,
|
||||||
|
timeout: 300_000
|
||||||
|
]
|
||||||
|
|
||||||
|
# Upload configuration
|
||||||
|
config :pleroma, Pleroma.Upload,
|
||||||
|
uploader: Pleroma.Uploaders.Local,
|
||||||
|
filters: [Pleroma.Upload.Filter.Dedupe],
|
||||||
|
link_name: false,
|
||||||
|
proxy_remote: false,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :upload
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.S3,
|
||||||
|
bucket: nil,
|
||||||
|
streaming_enabled: true,
|
||||||
|
public_endpoint: "https://s3.amazonaws.com"
|
||||||
|
|
||||||
|
config :pleroma, :emoji,
|
||||||
|
shortcode_globs: ["/emoji/custom/**/*.png"],
|
||||||
|
pack_extensions: [".png", ".gif"],
|
||||||
|
groups: [
|
||||||
|
Custom: ["/emoji/*.png", "/emoji/**/*.png"]
|
||||||
|
],
|
||||||
|
default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json",
|
||||||
|
shared_pack_cache_seconds_per_file: 60
|
||||||
|
|
||||||
|
config :pleroma, :uri_schemes,
|
||||||
|
valid_schemes: [
|
||||||
|
"https",
|
||||||
|
"http",
|
||||||
|
"dat",
|
||||||
|
"dweb",
|
||||||
|
"gopher",
|
||||||
|
"ipfs",
|
||||||
|
"ipns",
|
||||||
|
"irc",
|
||||||
|
"ircs",
|
||||||
|
"magnet",
|
||||||
|
"mailto",
|
||||||
|
"mumble",
|
||||||
|
"ssb",
|
||||||
|
"xmpp"
|
||||||
|
]
|
||||||
|
|
||||||
|
websocket_config = [
|
||||||
|
path: "/websocket",
|
||||||
|
serializer: [
|
||||||
|
{Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
|
||||||
|
{Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
|
||||||
|
],
|
||||||
|
timeout: 60_000,
|
||||||
|
transport_log: false,
|
||||||
|
compress: false
|
||||||
|
]
|
||||||
|
|
||||||
|
# Configures the endpoint
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
instrumenters: [Pleroma.Web.Endpoint.Instrumenter],
|
||||||
|
url: [host: "localhost"],
|
||||||
|
http: [
|
||||||
|
ip: {127, 0, 0, 1},
|
||||||
|
dispatch: [
|
||||||
|
{:_,
|
||||||
|
[
|
||||||
|
{"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
|
||||||
|
{"/websocket", Phoenix.Endpoint.CowboyWebSocket,
|
||||||
|
{Phoenix.Transports.WebSocket,
|
||||||
|
{Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
|
||||||
|
{:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
|
||||||
|
]}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
protocol: "https",
|
||||||
|
secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
|
||||||
|
signing_salt: "CqaoopA2",
|
||||||
|
render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
|
||||||
|
pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
|
||||||
|
secure_cookie_flag: true,
|
||||||
|
extra_cookie_attrs: [
|
||||||
|
"SameSite=Lax"
|
||||||
|
]
|
||||||
|
|
||||||
|
# Configures Elixir's Logger
|
||||||
|
config :logger, :console,
|
||||||
|
level: :debug,
|
||||||
|
format: "\n$time $metadata[$level] $message\n",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
config :logger, :ex_syslogger,
|
||||||
|
level: :debug,
|
||||||
|
ident: "pleroma",
|
||||||
|
format: "$metadata[$level] $message",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
config :quack,
|
||||||
|
level: :warn,
|
||||||
|
meta: [:all],
|
||||||
|
webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
|
||||||
|
|
||||||
|
config :mime, :types, %{
|
||||||
|
"application/xml" => ["xml"],
|
||||||
|
"application/xrd+xml" => ["xrd+xml"],
|
||||||
|
"application/jrd+json" => ["jrd+json"],
|
||||||
|
"application/activity+json" => ["activity+json"],
|
||||||
|
"application/ld+json" => ["activity+json"]
|
||||||
|
}
|
||||||
|
|
||||||
|
config :tesla, adapter: Tesla.Adapter.Hackney
|
||||||
|
|
||||||
|
# Configures http settings, upstream proxy etc.
|
||||||
|
config :pleroma, :http,
|
||||||
|
proxy_url: nil,
|
||||||
|
send_user_agent: true,
|
||||||
|
user_agent: :default,
|
||||||
|
adapter: [
|
||||||
|
ssl_options: [
|
||||||
|
# Workaround for remote server certificate chain issues
|
||||||
|
partial_chain: &:hackney_connect.partial_chain/1,
|
||||||
|
# We don't support TLS v1.3 yet
|
||||||
|
versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "Pleroma",
|
||||||
|
email: "example@example.com",
|
||||||
|
notify_email: "noreply@example.com",
|
||||||
|
description: "A Pleroma instance, an alternative fediverse server",
|
||||||
|
limit: 5_000,
|
||||||
|
chat_limit: 5_000,
|
||||||
|
remote_limit: 100_000,
|
||||||
|
upload_limit: 16_000_000,
|
||||||
|
avatar_upload_limit: 2_000_000,
|
||||||
|
background_upload_limit: 4_000_000,
|
||||||
|
banner_upload_limit: 4_000_000,
|
||||||
|
poll_limits: %{
|
||||||
|
max_options: 20,
|
||||||
|
max_option_chars: 200,
|
||||||
|
min_expiration: 0,
|
||||||
|
max_expiration: 365 * 24 * 60 * 60
|
||||||
|
},
|
||||||
|
registrations_open: true,
|
||||||
|
invites_enabled: false,
|
||||||
|
account_activation_required: false,
|
||||||
|
federating: true,
|
||||||
|
federation_incoming_replies_max_depth: 100,
|
||||||
|
federation_reachability_timeout_days: 7,
|
||||||
|
federation_publisher_modules: [
|
||||||
|
Pleroma.Web.ActivityPub.Publisher
|
||||||
|
],
|
||||||
|
allow_relay: true,
|
||||||
|
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
|
||||||
|
public: true,
|
||||||
|
quarantined_instances: [],
|
||||||
|
managed_config: true,
|
||||||
|
static_dir: "instance/static/",
|
||||||
|
allowed_post_formats: [
|
||||||
|
"text/plain",
|
||||||
|
"text/html",
|
||||||
|
"text/markdown",
|
||||||
|
"text/bbcode"
|
||||||
|
],
|
||||||
|
mrf_transparency: true,
|
||||||
|
mrf_transparency_exclusions: [],
|
||||||
|
autofollowed_nicknames: [],
|
||||||
|
max_pinned_statuses: 1,
|
||||||
|
attachment_links: false,
|
||||||
|
welcome_user_nickname: nil,
|
||||||
|
welcome_message: nil,
|
||||||
|
max_report_comment_size: 1000,
|
||||||
|
safe_dm_mentions: false,
|
||||||
|
healthcheck: false,
|
||||||
|
remote_post_retention_days: 90,
|
||||||
|
skip_thread_containment: true,
|
||||||
|
limit_to_local_content: :unauthenticated,
|
||||||
|
user_bio_length: 5000,
|
||||||
|
user_name_length: 100,
|
||||||
|
max_account_fields: 10,
|
||||||
|
max_remote_account_fields: 20,
|
||||||
|
account_field_name_length: 512,
|
||||||
|
account_field_value_length: 2048,
|
||||||
|
external_user_synchronization: true,
|
||||||
|
extended_nickname_format: true,
|
||||||
|
cleanup_attachments: false
|
||||||
|
|
||||||
|
config :pleroma, :feed,
|
||||||
|
post_title: %{
|
||||||
|
max_length: 100,
|
||||||
|
omission: "..."
|
||||||
|
}
|
||||||
|
|
||||||
|
config :pleroma, :markup,
|
||||||
|
# XXX - unfortunately, inline images must be enabled by default right now, because
|
||||||
|
# of custom emoji. Issue #275 discusses defanging that somehow.
|
||||||
|
allow_inline_images: true,
|
||||||
|
allow_headings: false,
|
||||||
|
allow_tables: false,
|
||||||
|
allow_fonts: false,
|
||||||
|
scrub_policy: [
|
||||||
|
Pleroma.HTML.Scrubber.Default,
|
||||||
|
Pleroma.HTML.Transform.MediaProxy
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :frontend_configurations,
|
||||||
|
pleroma_fe: %{
|
||||||
|
theme: "pleroma-dark",
|
||||||
|
logo: "/static/logo.png",
|
||||||
|
background: "/images/city.jpg",
|
||||||
|
redirectRootNoLogin: "/main/all",
|
||||||
|
redirectRootLogin: "/main/friends",
|
||||||
|
showInstanceSpecificPanel: true,
|
||||||
|
scopeOptionsEnabled: false,
|
||||||
|
formattingOptionsEnabled: false,
|
||||||
|
collapseMessageWithSubject: false,
|
||||||
|
hidePostStats: false,
|
||||||
|
hideUserStats: false,
|
||||||
|
scopeCopy: true,
|
||||||
|
subjectLineBehavior: "email",
|
||||||
|
alwaysShowSubjectInput: true
|
||||||
|
},
|
||||||
|
masto_fe: %{
|
||||||
|
showInstanceSpecificPanel: true
|
||||||
|
}
|
||||||
|
|
||||||
|
config :pleroma, :assets,
|
||||||
|
mascots: [
|
||||||
|
pleroma_fox_tan: %{
|
||||||
|
url: "/images/pleroma-fox-tan-smol.png",
|
||||||
|
mime_type: "image/png"
|
||||||
|
},
|
||||||
|
pleroma_fox_tan_shy: %{
|
||||||
|
url: "/images/pleroma-fox-tan-shy.png",
|
||||||
|
mime_type: "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
default_mascot: :pleroma_fox_tan
|
||||||
|
|
||||||
|
config :pleroma, :manifest,
|
||||||
|
icons: [
|
||||||
|
%{
|
||||||
|
src: "/static/logo.png",
|
||||||
|
type: "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
theme_color: "#282c37",
|
||||||
|
background_color: "#191b22"
|
||||||
|
|
||||||
|
config :pleroma, :activitypub,
|
||||||
|
unfollow_blocked: true,
|
||||||
|
outgoing_blocks: true,
|
||||||
|
follow_handshake_timeout: 500,
|
||||||
|
note_replies_output_limit: 5,
|
||||||
|
sign_object_fetches: true,
|
||||||
|
authorized_fetch_mode: false
|
||||||
|
|
||||||
|
config :pleroma, :streamer,
|
||||||
|
workers: 3,
|
||||||
|
overflow_workers: 2
|
||||||
|
|
||||||
|
config :pleroma, :user, deny_follow_blocked: true
|
||||||
|
|
||||||
|
config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
|
||||||
|
|
||||||
|
config :pleroma, :mrf_rejectnonpublic,
|
||||||
|
allow_followersonly: false,
|
||||||
|
allow_direct: false
|
||||||
|
|
||||||
|
config :pleroma, :mrf_hellthread,
|
||||||
|
delist_threshold: 10,
|
||||||
|
reject_threshold: 20
|
||||||
|
|
||||||
|
config :pleroma, :mrf_simple,
|
||||||
|
media_removal: [],
|
||||||
|
media_nsfw: [],
|
||||||
|
federated_timeline_removal: [],
|
||||||
|
report_removal: [],
|
||||||
|
reject: [],
|
||||||
|
accept: [],
|
||||||
|
avatar_removal: [],
|
||||||
|
banner_removal: []
|
||||||
|
|
||||||
|
config :pleroma, :mrf_keyword,
|
||||||
|
reject: [],
|
||||||
|
federated_timeline_removal: [],
|
||||||
|
replace: []
|
||||||
|
|
||||||
|
config :pleroma, :mrf_subchain, match_actor: %{}
|
||||||
|
|
||||||
|
config :pleroma, :mrf_vocabulary,
|
||||||
|
accept: [],
|
||||||
|
reject: []
|
||||||
|
|
||||||
|
config :pleroma, :mrf_object_age,
|
||||||
|
threshold: 172_800,
|
||||||
|
actions: [:delist, :strip_followers]
|
||||||
|
|
||||||
|
config :pleroma, :rich_media,
|
||||||
|
enabled: true,
|
||||||
|
ignore_hosts: [],
|
||||||
|
ignore_tld: ["local", "localdomain", "lan"],
|
||||||
|
parsers: [
|
||||||
|
Pleroma.Web.RichMedia.Parsers.TwitterCard,
|
||||||
|
Pleroma.Web.RichMedia.Parsers.OGP,
|
||||||
|
Pleroma.Web.RichMedia.Parsers.OEmbed
|
||||||
|
],
|
||||||
|
ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
|
||||||
|
|
||||||
|
config :pleroma, :media_proxy,
|
||||||
|
enabled: false,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :media
|
||||||
|
]
|
||||||
|
],
|
||||||
|
whitelist: []
|
||||||
|
|
||||||
|
config :pleroma, :chat, enabled: true
|
||||||
|
|
||||||
|
config :phoenix, :format_encoders, json: Jason
|
||||||
|
|
||||||
|
config :phoenix, :json_library, Jason
|
||||||
|
|
||||||
|
config :phoenix, :filter_parameters, ["password", "confirm"]
|
||||||
|
|
||||||
|
config :pleroma, :gopher,
|
||||||
|
enabled: false,
|
||||||
|
ip: {0, 0, 0, 0},
|
||||||
|
port: 9999
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Web.Metadata,
|
||||||
|
providers: [
|
||||||
|
Pleroma.Web.Metadata.Providers.OpenGraph,
|
||||||
|
Pleroma.Web.Metadata.Providers.TwitterCard,
|
||||||
|
Pleroma.Web.Metadata.Providers.RelMe,
|
||||||
|
Pleroma.Web.Metadata.Providers.Feed
|
||||||
|
],
|
||||||
|
unfurl_nsfw: false
|
||||||
|
|
||||||
|
config :pleroma, :http_security,
|
||||||
|
enabled: true,
|
||||||
|
sts: false,
|
||||||
|
sts_max_age: 31_536_000,
|
||||||
|
ct_max_age: 2_592_000,
|
||||||
|
referrer_policy: "same-origin"
|
||||||
|
|
||||||
|
config :cors_plug,
|
||||||
|
max_age: 86_400,
|
||||||
|
methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
|
||||||
|
expose: [
|
||||||
|
"Link",
|
||||||
|
"X-RateLimit-Reset",
|
||||||
|
"X-RateLimit-Limit",
|
||||||
|
"X-RateLimit-Remaining",
|
||||||
|
"X-Request-Id",
|
||||||
|
"Idempotency-Key"
|
||||||
|
],
|
||||||
|
credentials: true,
|
||||||
|
headers: ["Authorization", "Content-Type", "Idempotency-Key"]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.User,
|
||||||
|
restricted_nicknames: [
|
||||||
|
".well-known",
|
||||||
|
"~",
|
||||||
|
"about",
|
||||||
|
"activities",
|
||||||
|
"api",
|
||||||
|
"auth",
|
||||||
|
"check_password",
|
||||||
|
"dev",
|
||||||
|
"friend-requests",
|
||||||
|
"inbox",
|
||||||
|
"internal",
|
||||||
|
"main",
|
||||||
|
"media",
|
||||||
|
"nodeinfo",
|
||||||
|
"notice",
|
||||||
|
"oauth",
|
||||||
|
"objects",
|
||||||
|
"ostatus_subscribe",
|
||||||
|
"pleroma",
|
||||||
|
"proxy",
|
||||||
|
"push",
|
||||||
|
"registration",
|
||||||
|
"relay",
|
||||||
|
"settings",
|
||||||
|
"status",
|
||||||
|
"tag",
|
||||||
|
"user-search",
|
||||||
|
"user_exists",
|
||||||
|
"users",
|
||||||
|
"web"
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Oban,
|
||||||
|
repo: Pleroma.Repo,
|
||||||
|
verbose: false,
|
||||||
|
prune: {:maxlen, 1500},
|
||||||
|
queues: [
|
||||||
|
activity_expiration: 10,
|
||||||
|
federator_incoming: 50,
|
||||||
|
federator_outgoing: 50,
|
||||||
|
web_push: 50,
|
||||||
|
mailer: 10,
|
||||||
|
transmogrifier: 20,
|
||||||
|
scheduled_activities: 10,
|
||||||
|
background: 5,
|
||||||
|
remote_fetcher: 2,
|
||||||
|
attachments_cleanup: 5,
|
||||||
|
new_users_digest: 1
|
||||||
|
],
|
||||||
|
crontab: [
|
||||||
|
{"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker},
|
||||||
|
{"0 * * * *", Pleroma.Workers.Cron.StatsWorker},
|
||||||
|
{"* * * * *", Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker},
|
||||||
|
{"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
|
||||||
|
{"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :workers,
|
||||||
|
retries: [
|
||||||
|
federator_incoming: 5,
|
||||||
|
federator_outgoing: 5
|
||||||
|
]
|
||||||
|
|
||||||
|
config :auto_linker,
|
||||||
|
opts: [
|
||||||
|
extra: true,
|
||||||
|
# TODO: Set to :no_scheme when it works properly
|
||||||
|
validate_tld: true,
|
||||||
|
class: false,
|
||||||
|
strip_prefix: false,
|
||||||
|
new_window: false,
|
||||||
|
rel: "ugc"
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :ldap,
|
||||||
|
enabled: System.get_env("LDAP_ENABLED") == "true",
|
||||||
|
host: System.get_env("LDAP_HOST") || "localhost",
|
||||||
|
port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
|
||||||
|
ssl: System.get_env("LDAP_SSL") == "true",
|
||||||
|
sslopts: [],
|
||||||
|
tls: System.get_env("LDAP_TLS") == "true",
|
||||||
|
tlsopts: [],
|
||||||
|
base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
|
||||||
|
uid: System.get_env("LDAP_UID") || "cn"
|
||||||
|
|
||||||
|
config :esshd,
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
oauth_consumer_strategies =
|
||||||
|
System.get_env("OAUTH_CONSUMER_STRATEGIES")
|
||||||
|
|> to_string()
|
||||||
|
|> String.split()
|
||||||
|
|> Enum.map(&hd(String.split(&1, ":")))
|
||||||
|
|
||||||
|
ueberauth_providers =
|
||||||
|
for strategy <- oauth_consumer_strategies do
|
||||||
|
strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
|
||||||
|
strategy_module = String.to_atom(strategy_module_name)
|
||||||
|
{String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
|
||||||
|
end
|
||||||
|
|
||||||
|
config :ueberauth,
|
||||||
|
Ueberauth,
|
||||||
|
base_path: "/oauth",
|
||||||
|
providers: ueberauth_providers
|
||||||
|
|
||||||
|
config :pleroma,
|
||||||
|
:auth,
|
||||||
|
enforce_oauth_admin_scope_usage: true,
|
||||||
|
oauth_consumer_strategies: oauth_consumer_strategies
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Emails.UserEmail,
|
||||||
|
logo: nil,
|
||||||
|
styling: %{
|
||||||
|
link_color: "#d8a070",
|
||||||
|
background_color: "#2C3645",
|
||||||
|
content_background_color: "#1B2635",
|
||||||
|
header_color: "#d8a070",
|
||||||
|
text_color: "#b9b9ba",
|
||||||
|
text_muted_color: "#b9b9ba"
|
||||||
|
}
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
|
||||||
|
|
||||||
|
config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.ScheduledActivity,
|
||||||
|
daily_user_limit: 25,
|
||||||
|
total_user_limit: 300,
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
config :pleroma, :email_notifications,
|
||||||
|
digest: %{
|
||||||
|
active: false,
|
||||||
|
interval: 7,
|
||||||
|
inactivity_threshold: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
config :pleroma, :oauth2,
|
||||||
|
token_expires_in: 600,
|
||||||
|
issue_new_refresh_token: true,
|
||||||
|
clean_expired_tokens: false
|
||||||
|
|
||||||
|
config :pleroma, :database, rum_enabled: false
|
||||||
|
|
||||||
|
config :pleroma, :env, Mix.env()
|
||||||
|
|
||||||
|
config :http_signatures,
|
||||||
|
adapter: Pleroma.Signature
|
||||||
|
|
||||||
|
config :pleroma, :rate_limit,
|
||||||
|
authentication: {60_000, 15},
|
||||||
|
timeline: {500, 3},
|
||||||
|
search: [{1000, 10}, {1000, 30}],
|
||||||
|
app_account_creation: {1_800_000, 25},
|
||||||
|
relations_actions: {10_000, 10},
|
||||||
|
relation_id_action: {60_000, 2},
|
||||||
|
statuses_actions: {10_000, 15},
|
||||||
|
status_id_action: {60_000, 3},
|
||||||
|
password_reset: {1_800_000, 5},
|
||||||
|
account_confirmation_resend: {8_640_000, 5},
|
||||||
|
ap_routes: {60_000, 15}
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.ActivityExpiration, enabled: true
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Plugs.RemoteIp, enabled: true
|
||||||
|
|
||||||
|
config :pleroma, :static_fe, enabled: false
|
||||||
|
|
||||||
|
config :pleroma, :web_cache_ttl,
|
||||||
|
activity_pub: nil,
|
||||||
|
activity_pub_question: 30_000
|
||||||
|
|
||||||
|
config :pleroma, :modules, runtime_dir: "instance/modules"
|
||||||
|
|
||||||
|
config :pleroma, configurable_from_database: false
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
parameters: [gin_fuzzy_search_limit: "500"],
|
||||||
|
prepare: :unnamed
|
||||||
|
|
||||||
|
config :pleroma, :restrict_unauthenticated,
|
||||||
|
timelines: %{local: false, federated: false},
|
||||||
|
profiles: %{local: false, remote: false},
|
||||||
|
activities: %{local: false, remote: false}
|
||||||
|
|
||||||
|
# Import environment specific config. This must remain at the bottom
|
||||||
|
# of this file so it overrides the configuration defined above.
|
||||||
|
import_config "#{Mix.env()}.exs"
|
||||||
536
production/pleroma/pleroma/config/config.exs.1
Archivo normal
@@ -0,0 +1,536 @@
|
|||||||
|
# .i;;;;i.
|
||||||
|
# iYcviii;vXY:
|
||||||
|
# .YXi .i1c.
|
||||||
|
# .YC. . in7.
|
||||||
|
# .vc. ...... ;1c.
|
||||||
|
# i7, .. .;1;
|
||||||
|
# i7, .. ... .Y1i
|
||||||
|
# ,7v .6MMM@; .YX,
|
||||||
|
# .7;. ..IMMMMMM1 :t7.
|
||||||
|
# .;Y. ;$MMMMMM9. :tc.
|
||||||
|
# vY. .. .nMMM@MMU. ;1v.
|
||||||
|
# i7i ... .#MM@M@C. .....:71i
|
||||||
|
# it: .... $MMM@9;.,i;;;i,;tti
|
||||||
|
# :t7. ..... 0MMMWv.,iii:::,,;St.
|
||||||
|
# .nC. ..... IMMMQ..,::::::,.,czX.
|
||||||
|
# .ct: ....... .ZMMMI..,:::::::,,:76Y.
|
||||||
|
# c2: ......,i..Y$M@t..:::::::,,..inZY
|
||||||
|
# vov ......:ii..c$MBc..,,,,,,,,,,..iI9i
|
||||||
|
# i9Y ......iii:..7@MA,..,,,,,,,,,....;AA:
|
||||||
|
# iIS. ......:ii::..;@MI....,............;Ez.
|
||||||
|
# .I9. ......:i::::...8M1..................C0z.
|
||||||
|
# .z9; ......:i::::,.. .i:...................zWX.
|
||||||
|
# vbv ......,i::::,,. ................. :AQY
|
||||||
|
# c6Y. .,...,::::,,..:t0@@QY. ................ :8bi
|
||||||
|
# :6S. ..,,...,:::,,,..EMMMMMMI. ............... .;bZ,
|
||||||
|
# :6o, .,,,,..:::,,,..i#MMMMMM#v................. YW2.
|
||||||
|
# .n8i ..,,,,,,,::,,,,.. tMMMMM@C:.................. .1Wn
|
||||||
|
# 7Uc. .:::,,,,,::,,,,.. i1t;,..................... .UEi
|
||||||
|
# 7C...::::::::::::,,,,.. .................... vSi.
|
||||||
|
# ;1;...,,::::::,......... .................. Yz:
|
||||||
|
# v97,......... .voC.
|
||||||
|
# izAotX7777777777777777777777777777777777777777Y7n92:
|
||||||
|
# .;CoIIIIIUAA666666699999ZZZZZZZZZZZZZZZZZZZZ6ov.
|
||||||
|
#
|
||||||
|
# !!! ATTENTION !!!
|
||||||
|
# DO NOT EDIT THIS FILE! THIS FILE CONTAINS THE DEFAULT VALUES FOR THE CON-
|
||||||
|
# FIGURATION! EDIT YOUR SECRET FILE (either prod.secret.exs, dev.secret.exs).
|
||||||
|
#
|
||||||
|
# This file is responsible for configuring your application
|
||||||
|
# and its dependencies with the aid of the Mix.Config module.
|
||||||
|
#
|
||||||
|
# This configuration file is loaded before any dependency and
|
||||||
|
# is restricted to this project.
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# General application configuration
|
||||||
|
config :pleroma, ecto_repos: [Pleroma.Repo]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
types: Pleroma.PostgresTypes,
|
||||||
|
telemetry_event: [Pleroma.Repo.Instrumenter],
|
||||||
|
migration_lock: nil
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Captcha,
|
||||||
|
enabled: false,
|
||||||
|
seconds_valid: 60,
|
||||||
|
method: Pleroma.Captcha.Kocaptcha
|
||||||
|
|
||||||
|
config :pleroma, :hackney_pools,
|
||||||
|
federation: [
|
||||||
|
max_connections: 50,
|
||||||
|
timeout: 150_000
|
||||||
|
],
|
||||||
|
media: [
|
||||||
|
max_connections: 50,
|
||||||
|
timeout: 150_000
|
||||||
|
],
|
||||||
|
upload: [
|
||||||
|
max_connections: 25,
|
||||||
|
timeout: 300_000
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://captcha.kotobank.ch"
|
||||||
|
|
||||||
|
# Upload configuration
|
||||||
|
config :pleroma, Pleroma.Upload,
|
||||||
|
uploader: Pleroma.Uploaders.Local,
|
||||||
|
filters: [Pleroma.Upload.Filter.Dedupe],
|
||||||
|
link_name: true,
|
||||||
|
proxy_remote: false,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :upload
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.S3,
|
||||||
|
bucket: nil,
|
||||||
|
public_endpoint: "https://s3.amazonaws.com"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.MDII,
|
||||||
|
cgi: "https://mdii.sakura.ne.jp/mdii-post.cgi",
|
||||||
|
files: "https://mdii.sakura.ne.jp"
|
||||||
|
|
||||||
|
config :pleroma, :emoji,
|
||||||
|
shortcode_globs: ["/emoji/custom/**/*.png"],
|
||||||
|
pack_extensions: [".png", ".gif"],
|
||||||
|
groups: [
|
||||||
|
# Put groups that have higher priority than defaults here. Example in `docs/config/custom_emoji.md`
|
||||||
|
Custom: ["/emoji/*.png", "/emoji/**/*.png"]
|
||||||
|
],
|
||||||
|
default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"
|
||||||
|
|
||||||
|
config :pleroma, :uri_schemes,
|
||||||
|
valid_schemes: [
|
||||||
|
"https",
|
||||||
|
"http",
|
||||||
|
"dat",
|
||||||
|
"dweb",
|
||||||
|
"gopher",
|
||||||
|
"ipfs",
|
||||||
|
"ipns",
|
||||||
|
"irc",
|
||||||
|
"ircs",
|
||||||
|
"magnet",
|
||||||
|
"mailto",
|
||||||
|
"mumble",
|
||||||
|
"ssb",
|
||||||
|
"xmpp"
|
||||||
|
]
|
||||||
|
|
||||||
|
websocket_config = [
|
||||||
|
path: "/websocket",
|
||||||
|
serializer: [
|
||||||
|
{Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
|
||||||
|
{Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
|
||||||
|
],
|
||||||
|
timeout: 60_000,
|
||||||
|
transport_log: false,
|
||||||
|
compress: false
|
||||||
|
]
|
||||||
|
|
||||||
|
# Configures the endpoint
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
instrumenters: [Pleroma.Web.Endpoint.Instrumenter],
|
||||||
|
url: [host: "localhost"],
|
||||||
|
http: [
|
||||||
|
ip: {127, 0, 0, 1},
|
||||||
|
dispatch: [
|
||||||
|
{:_,
|
||||||
|
[
|
||||||
|
{"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
|
||||||
|
{"/websocket", Phoenix.Endpoint.CowboyWebSocket,
|
||||||
|
{Phoenix.Transports.WebSocket,
|
||||||
|
{Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
|
||||||
|
{:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
|
||||||
|
]}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
protocol: "https",
|
||||||
|
secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
|
||||||
|
signing_salt: "CqaoopA2",
|
||||||
|
render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
|
||||||
|
pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
|
||||||
|
secure_cookie_flag: true,
|
||||||
|
extra_cookie_attrs: [
|
||||||
|
"SameSite=Lax"
|
||||||
|
]
|
||||||
|
|
||||||
|
# Configures Elixir's Logger
|
||||||
|
config :logger, :console,
|
||||||
|
format: "$time $metadata[$level] $message\n",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
config :logger, :ex_syslogger,
|
||||||
|
level: :debug,
|
||||||
|
ident: "pleroma",
|
||||||
|
format: "$metadata[$level] $message",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
config :quack,
|
||||||
|
level: :warn,
|
||||||
|
meta: [:all],
|
||||||
|
webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
|
||||||
|
|
||||||
|
config :mime, :types, %{
|
||||||
|
"application/xml" => ["xml"],
|
||||||
|
"application/xrd+xml" => ["xrd+xml"],
|
||||||
|
"application/jrd+json" => ["jrd+json"],
|
||||||
|
"application/activity+json" => ["activity+json"],
|
||||||
|
"application/ld+json" => ["activity+json"]
|
||||||
|
}
|
||||||
|
|
||||||
|
config :tesla, adapter: Tesla.Adapter.Hackney
|
||||||
|
|
||||||
|
# Configures http settings, upstream proxy etc.
|
||||||
|
config :pleroma, :http,
|
||||||
|
proxy_url: nil,
|
||||||
|
send_user_agent: true,
|
||||||
|
adapter: [
|
||||||
|
ssl_options: [
|
||||||
|
# Workaround for remote server certificate chain issues
|
||||||
|
partial_chain: &:hackney_connect.partial_chain/1,
|
||||||
|
# We don't support TLS v1.3 yet
|
||||||
|
versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "Pleroma",
|
||||||
|
email: "example@example.com",
|
||||||
|
notify_email: "noreply@example.com",
|
||||||
|
description: "A Pleroma instance, an alternative fediverse server",
|
||||||
|
limit: 5_000,
|
||||||
|
remote_limit: 100_000,
|
||||||
|
upload_limit: 16_000_000,
|
||||||
|
avatar_upload_limit: 2_000_000,
|
||||||
|
background_upload_limit: 4_000_000,
|
||||||
|
banner_upload_limit: 4_000_000,
|
||||||
|
poll_limits: %{
|
||||||
|
max_options: 20,
|
||||||
|
max_option_chars: 200,
|
||||||
|
min_expiration: 0,
|
||||||
|
max_expiration: 365 * 24 * 60 * 60
|
||||||
|
},
|
||||||
|
registrations_open: true,
|
||||||
|
federating: true,
|
||||||
|
federation_incoming_replies_max_depth: 100,
|
||||||
|
federation_reachability_timeout_days: 7,
|
||||||
|
federation_publisher_modules: [
|
||||||
|
Pleroma.Web.ActivityPub.Publisher,
|
||||||
|
Pleroma.Web.Websub,
|
||||||
|
Pleroma.Web.Salmon
|
||||||
|
],
|
||||||
|
allow_relay: true,
|
||||||
|
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
|
||||||
|
public: true,
|
||||||
|
quarantined_instances: [],
|
||||||
|
managed_config: true,
|
||||||
|
static_dir: "instance/static/",
|
||||||
|
allowed_post_formats: [
|
||||||
|
"text/plain",
|
||||||
|
"text/html",
|
||||||
|
"text/markdown",
|
||||||
|
"text/bbcode"
|
||||||
|
],
|
||||||
|
mrf_transparency: true,
|
||||||
|
mrf_transparency_exclusions: [],
|
||||||
|
autofollowed_nicknames: [],
|
||||||
|
max_pinned_statuses: 1,
|
||||||
|
no_attachment_links: false,
|
||||||
|
welcome_user_nickname: nil,
|
||||||
|
welcome_message: nil,
|
||||||
|
max_report_comment_size: 1000,
|
||||||
|
safe_dm_mentions: false,
|
||||||
|
healthcheck: false,
|
||||||
|
remote_post_retention_days: 90,
|
||||||
|
skip_thread_containment: true,
|
||||||
|
limit_to_local_content: :unauthenticated,
|
||||||
|
dynamic_configuration: false,
|
||||||
|
external_user_synchronization: true
|
||||||
|
|
||||||
|
config :pleroma, :markup,
|
||||||
|
# XXX - unfortunately, inline images must be enabled by default right now, because
|
||||||
|
# of custom emoji. Issue #275 discusses defanging that somehow.
|
||||||
|
allow_inline_images: true,
|
||||||
|
allow_headings: false,
|
||||||
|
allow_tables: false,
|
||||||
|
allow_fonts: false,
|
||||||
|
scrub_policy: [
|
||||||
|
Pleroma.HTML.Transform.MediaProxy,
|
||||||
|
Pleroma.HTML.Scrubber.Default
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :frontend_configurations,
|
||||||
|
pleroma_fe: %{
|
||||||
|
theme: "pleroma-dark",
|
||||||
|
logo: "/static/logo.png",
|
||||||
|
background: "/images/city.jpg",
|
||||||
|
redirectRootNoLogin: "/main/all",
|
||||||
|
redirectRootLogin: "/main/friends",
|
||||||
|
showInstanceSpecificPanel: true,
|
||||||
|
scopeOptionsEnabled: false,
|
||||||
|
formattingOptionsEnabled: false,
|
||||||
|
collapseMessageWithSubject: false,
|
||||||
|
hidePostStats: false,
|
||||||
|
hideUserStats: false,
|
||||||
|
scopeCopy: true,
|
||||||
|
subjectLineBehavior: "email",
|
||||||
|
alwaysShowSubjectInput: true
|
||||||
|
},
|
||||||
|
masto_fe: %{
|
||||||
|
showInstanceSpecificPanel: true
|
||||||
|
}
|
||||||
|
|
||||||
|
config :pleroma, :assets,
|
||||||
|
mascots: [
|
||||||
|
pleroma_fox_tan: %{
|
||||||
|
url: "/images/pleroma-fox-tan-smol.png",
|
||||||
|
mime_type: "image/png"
|
||||||
|
},
|
||||||
|
pleroma_fox_tan_shy: %{
|
||||||
|
url: "/images/pleroma-fox-tan-shy.png",
|
||||||
|
mime_type: "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
default_mascot: :pleroma_fox_tan
|
||||||
|
|
||||||
|
config :pleroma, :activitypub,
|
||||||
|
accept_blocks: true,
|
||||||
|
unfollow_blocked: true,
|
||||||
|
outgoing_blocks: true,
|
||||||
|
follow_handshake_timeout: 500
|
||||||
|
|
||||||
|
config :pleroma, :user, deny_follow_blocked: true
|
||||||
|
|
||||||
|
config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
|
||||||
|
|
||||||
|
config :pleroma, :mrf_rejectnonpublic,
|
||||||
|
allow_followersonly: false,
|
||||||
|
allow_direct: false
|
||||||
|
|
||||||
|
config :pleroma, :mrf_hellthread,
|
||||||
|
delist_threshold: 10,
|
||||||
|
reject_threshold: 20
|
||||||
|
|
||||||
|
config :pleroma, :mrf_simple,
|
||||||
|
media_removal: [],
|
||||||
|
media_nsfw: [],
|
||||||
|
federated_timeline_removal: [],
|
||||||
|
report_removal: [],
|
||||||
|
reject: [],
|
||||||
|
accept: [],
|
||||||
|
avatar_removal: [],
|
||||||
|
banner_removal: []
|
||||||
|
|
||||||
|
config :pleroma, :mrf_keyword,
|
||||||
|
reject: [],
|
||||||
|
federated_timeline_removal: [],
|
||||||
|
replace: []
|
||||||
|
|
||||||
|
config :pleroma, :mrf_subchain, match_actor: %{}
|
||||||
|
|
||||||
|
config :pleroma, :rich_media,
|
||||||
|
enabled: true,
|
||||||
|
ignore_hosts: [],
|
||||||
|
ignore_tld: ["local", "localdomain", "lan"],
|
||||||
|
parsers: [
|
||||||
|
Pleroma.Web.RichMedia.Parsers.TwitterCard,
|
||||||
|
Pleroma.Web.RichMedia.Parsers.OGP,
|
||||||
|
Pleroma.Web.RichMedia.Parsers.OEmbed
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :media_proxy,
|
||||||
|
enabled: false,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :media
|
||||||
|
]
|
||||||
|
],
|
||||||
|
whitelist: []
|
||||||
|
|
||||||
|
config :pleroma, :chat, enabled: true
|
||||||
|
|
||||||
|
config :phoenix, :format_encoders, json: Jason
|
||||||
|
|
||||||
|
config :pleroma, :gopher,
|
||||||
|
enabled: false,
|
||||||
|
ip: {0, 0, 0, 0},
|
||||||
|
port: 9999
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Web.Metadata,
|
||||||
|
providers: [
|
||||||
|
Pleroma.Web.Metadata.Providers.OpenGraph,
|
||||||
|
Pleroma.Web.Metadata.Providers.TwitterCard,
|
||||||
|
Pleroma.Web.Metadata.Providers.RelMe
|
||||||
|
],
|
||||||
|
unfurl_nsfw: false
|
||||||
|
|
||||||
|
config :pleroma, :suggestions,
|
||||||
|
enabled: false,
|
||||||
|
third_party_engine:
|
||||||
|
"http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
|
||||||
|
timeout: 300_000,
|
||||||
|
limit: 40,
|
||||||
|
web: "https://vinayaka.distsn.org"
|
||||||
|
|
||||||
|
config :pleroma, :http_security,
|
||||||
|
enabled: true,
|
||||||
|
sts: false,
|
||||||
|
sts_max_age: 31_536_000,
|
||||||
|
ct_max_age: 2_592_000,
|
||||||
|
referrer_policy: "same-origin"
|
||||||
|
|
||||||
|
config :cors_plug,
|
||||||
|
max_age: 86_400,
|
||||||
|
methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
|
||||||
|
expose: [
|
||||||
|
"Link",
|
||||||
|
"X-RateLimit-Reset",
|
||||||
|
"X-RateLimit-Limit",
|
||||||
|
"X-RateLimit-Remaining",
|
||||||
|
"X-Request-Id",
|
||||||
|
"Idempotency-Key"
|
||||||
|
],
|
||||||
|
credentials: true,
|
||||||
|
headers: ["Authorization", "Content-Type", "Idempotency-Key"]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.User,
|
||||||
|
restricted_nicknames: [
|
||||||
|
".well-known",
|
||||||
|
"~",
|
||||||
|
"about",
|
||||||
|
"activities",
|
||||||
|
"api",
|
||||||
|
"auth",
|
||||||
|
"check_password",
|
||||||
|
"dev",
|
||||||
|
"friend-requests",
|
||||||
|
"inbox",
|
||||||
|
"internal",
|
||||||
|
"main",
|
||||||
|
"media",
|
||||||
|
"nodeinfo",
|
||||||
|
"notice",
|
||||||
|
"oauth",
|
||||||
|
"objects",
|
||||||
|
"ostatus_subscribe",
|
||||||
|
"pleroma",
|
||||||
|
"proxy",
|
||||||
|
"push",
|
||||||
|
"registration",
|
||||||
|
"relay",
|
||||||
|
"settings",
|
||||||
|
"status",
|
||||||
|
"tag",
|
||||||
|
"user-search",
|
||||||
|
"user_exists",
|
||||||
|
"users",
|
||||||
|
"web"
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Web.Federator.RetryQueue,
|
||||||
|
enabled: false,
|
||||||
|
max_jobs: 20,
|
||||||
|
initial_timeout: 30,
|
||||||
|
max_retries: 5
|
||||||
|
|
||||||
|
config :pleroma_job_queue, :queues,
|
||||||
|
federator_incoming: 50,
|
||||||
|
federator_outgoing: 50,
|
||||||
|
web_push: 50,
|
||||||
|
mailer: 10,
|
||||||
|
transmogrifier: 20,
|
||||||
|
scheduled_activities: 10,
|
||||||
|
background: 5
|
||||||
|
|
||||||
|
config :pleroma, :fetch_initial_posts,
|
||||||
|
enabled: false,
|
||||||
|
pages: 5
|
||||||
|
|
||||||
|
config :auto_linker,
|
||||||
|
opts: [
|
||||||
|
scheme: true,
|
||||||
|
extra: true,
|
||||||
|
# TODO: Set to :no_scheme when it works properly
|
||||||
|
validate_tld: true,
|
||||||
|
class: false,
|
||||||
|
strip_prefix: false,
|
||||||
|
new_window: false,
|
||||||
|
rel: false
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :ldap,
|
||||||
|
enabled: System.get_env("LDAP_ENABLED") == "true",
|
||||||
|
host: System.get_env("LDAP_HOST") || "localhost",
|
||||||
|
port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
|
||||||
|
ssl: System.get_env("LDAP_SSL") == "true",
|
||||||
|
sslopts: [],
|
||||||
|
tls: System.get_env("LDAP_TLS") == "true",
|
||||||
|
tlsopts: [],
|
||||||
|
base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
|
||||||
|
uid: System.get_env("LDAP_UID") || "cn"
|
||||||
|
|
||||||
|
config :esshd,
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
oauth_consumer_strategies =
|
||||||
|
System.get_env("OAUTH_CONSUMER_STRATEGIES")
|
||||||
|
|> to_string()
|
||||||
|
|> String.split()
|
||||||
|
|> Enum.map(&hd(String.split(&1, ":")))
|
||||||
|
|
||||||
|
ueberauth_providers =
|
||||||
|
for strategy <- oauth_consumer_strategies do
|
||||||
|
strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
|
||||||
|
strategy_module = String.to_atom(strategy_module_name)
|
||||||
|
{String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
|
||||||
|
end
|
||||||
|
|
||||||
|
config :ueberauth,
|
||||||
|
Ueberauth,
|
||||||
|
base_path: "/oauth",
|
||||||
|
providers: ueberauth_providers
|
||||||
|
|
||||||
|
config :pleroma, :auth, oauth_consumer_strategies: oauth_consumer_strategies
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
|
||||||
|
|
||||||
|
config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.ScheduledActivity,
|
||||||
|
daily_user_limit: 25,
|
||||||
|
total_user_limit: 300,
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
config :pleroma, :oauth2,
|
||||||
|
token_expires_in: 600,
|
||||||
|
issue_new_refresh_token: true,
|
||||||
|
clean_expired_tokens: false,
|
||||||
|
clean_expired_tokens_interval: 86_400_000
|
||||||
|
|
||||||
|
config :pleroma, :database, rum_enabled: false
|
||||||
|
|
||||||
|
config :pleroma, :env, Mix.env()
|
||||||
|
|
||||||
|
config :http_signatures,
|
||||||
|
adapter: Pleroma.Signature
|
||||||
|
|
||||||
|
config :pleroma, :rate_limit,
|
||||||
|
search: [{1000, 10}, {1000, 30}],
|
||||||
|
app_account_creation: {1_800_000, 25},
|
||||||
|
statuses_actions: {10_000, 15},
|
||||||
|
status_id_action: {60_000, 3}
|
||||||
|
|
||||||
|
# Import environment specific config. This must remain at the bottom
|
||||||
|
# of this file so it overrides the configuration defined above.
|
||||||
|
import_config "#{Mix.env()}.exs"
|
||||||
3105
production/pleroma/pleroma/config/description.exs
Archivo normal
61
production/pleroma/pleroma/config/dev.exs
Archivo normal
@@ -0,0 +1,61 @@
|
|||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# For development, we disable any cache and enable
|
||||||
|
# debugging and code reloading.
|
||||||
|
#
|
||||||
|
# The watchers configuration can be used to run external
|
||||||
|
# watchers to your application. For example, we use it
|
||||||
|
# with brunch.io to recompile .js and .css sources.
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
http: [
|
||||||
|
port: 4000,
|
||||||
|
protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192]
|
||||||
|
],
|
||||||
|
protocol: "http",
|
||||||
|
debug_errors: true,
|
||||||
|
code_reloader: true,
|
||||||
|
check_origin: false,
|
||||||
|
watchers: [],
|
||||||
|
secure_cookie_flag: false
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Local
|
||||||
|
|
||||||
|
# ## SSL Support
|
||||||
|
#
|
||||||
|
# In order to use HTTPS in development, a self-signed
|
||||||
|
# certificate can be generated by running the following
|
||||||
|
# command from your terminal:
|
||||||
|
#
|
||||||
|
# openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout priv/server.key -out priv/server.pem
|
||||||
|
#
|
||||||
|
# The `http:` config above can be replaced with:
|
||||||
|
#
|
||||||
|
# https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
|
||||||
|
#
|
||||||
|
# If desired, both `http:` and `https:` keys can be
|
||||||
|
# configured to run both http and https servers on
|
||||||
|
# different ports.
|
||||||
|
|
||||||
|
# Do not include metadata nor timestamps in development logs
|
||||||
|
config :logger, :console, format: "[$level] $message\n"
|
||||||
|
|
||||||
|
# Set a higher stacktrace during development. Avoid configuring such
|
||||||
|
# in production as building large stacktraces may be expensive.
|
||||||
|
config :phoenix, :stacktrace_depth, 20
|
||||||
|
|
||||||
|
# Configure your database
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 10
|
||||||
|
|
||||||
|
if File.exists?("./config/dev.secret.exs") do
|
||||||
|
import_config "dev.secret.exs"
|
||||||
|
else
|
||||||
|
IO.puts(
|
||||||
|
"!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
|
||||||
|
)
|
||||||
|
end
|
||||||
197
production/pleroma/pleroma/config/generated_config.exs
Archivo normal
@@ -0,0 +1,197 @@
|
|||||||
|
# Pleroma instance configuration
|
||||||
|
|
||||||
|
# NOTE: This file should not be committed to a repo or otherwise made public
|
||||||
|
# without removing sensitive information.
|
||||||
|
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# Configures the endpoint
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
instrumenters: [Pleroma.Web.Endpoint.Instrumenter],
|
||||||
|
url: [host: "social.hatthieves.es", scheme: "https", port: 443],
|
||||||
|
http: [
|
||||||
|
dispatch: [
|
||||||
|
{:_,
|
||||||
|
[
|
||||||
|
{"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
|
||||||
|
{"/websocket", Phoenix.Endpoint.CowboyWebSocket,
|
||||||
|
{Phoenix.Transports.WebSocket,
|
||||||
|
{Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
|
||||||
|
{:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
|
||||||
|
]}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
protocol: "https",
|
||||||
|
secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8",
|
||||||
|
signing_salt: "g0uP6uv4",
|
||||||
|
render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
|
||||||
|
pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
|
||||||
|
secure_cookie_flag: true,
|
||||||
|
extra_cookie_attrs: [
|
||||||
|
"SameSite=Lax"
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 10
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "Pleroma/HatThieves.es",
|
||||||
|
email: "info@hatthieves.es",
|
||||||
|
notify_email: "info@hatthieves.es",
|
||||||
|
limit: 5000,
|
||||||
|
registrations_open: true,
|
||||||
|
dedupe_media: true,
|
||||||
|
upload_limit: 25_000_000,
|
||||||
|
federating: true,
|
||||||
|
allow_relay: true,
|
||||||
|
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
|
||||||
|
public: true,
|
||||||
|
quarantined_instances: []
|
||||||
|
|
||||||
|
config :logger, :console,
|
||||||
|
format: "$time $metadata[$level] $message\n",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
#config :mime, :types, %{
|
||||||
|
# "application/xml" => ["xml"],
|
||||||
|
# "application/xrd+xml" => ["xrd+xml"],
|
||||||
|
# "application/activity+json" => ["activity+json"],
|
||||||
|
# "application/ld+json" => ["activity+json"]
|
||||||
|
#}
|
||||||
|
|
||||||
|
#config :pleroma, :websub, Pleroma.Web.Websub
|
||||||
|
#config :pleroma, :ostatus, Pleroma.Web.OStatus
|
||||||
|
#config :pleroma, :httpoison, Pleroma.HTTP
|
||||||
|
|
||||||
|
version =
|
||||||
|
with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
|
||||||
|
"Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
|
||||||
|
else
|
||||||
|
_ -> "Pleroma #{Mix.Project.config()[:version]} dev"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Configures http settings, upstream proxy etc.
|
||||||
|
config :pleroma, :http, proxy_url: nil
|
||||||
|
|
||||||
|
config :pleroma, :activitypub,
|
||||||
|
accept_blocks: true,
|
||||||
|
unfollow_blocked: true,
|
||||||
|
outgoing_blocks: true
|
||||||
|
|
||||||
|
#config :pleroma, Pleroma.Uploaders.S3, s3_bucket: nil
|
||||||
|
|
||||||
|
#config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
|
||||||
|
|
||||||
|
#config :pleroma, :uri_schemes, additionnal_schemes: []
|
||||||
|
|
||||||
|
config :pleroma, :user, deny_follow_blocked: true
|
||||||
|
|
||||||
|
config :pleroma, :mrf_rejectnonpublic,
|
||||||
|
allow_followersonly: false,
|
||||||
|
allow_direct: false
|
||||||
|
|
||||||
|
config :pleroma, :mrf_simple,
|
||||||
|
media_removal: [],
|
||||||
|
media_nsfw: [],
|
||||||
|
federated_timeline_removal: [],
|
||||||
|
reject: [],
|
||||||
|
accept: []
|
||||||
|
|
||||||
|
config :pleroma, :media_proxy,
|
||||||
|
enabled: false,
|
||||||
|
redirect_on_failure: true
|
||||||
|
#base_url: "https://cache.pleroma.social"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 10
|
||||||
|
|
||||||
|
# Configure web push notifications
|
||||||
|
config :web_push_encryption, :vapid_details,
|
||||||
|
subject: "mailto:info@hatthieves.es",
|
||||||
|
public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw",
|
||||||
|
private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY"
|
||||||
|
|
||||||
|
# Enable Strict-Transport-Security once SSL is working:
|
||||||
|
# config :pleroma, :http_security,
|
||||||
|
# sts: true
|
||||||
|
|
||||||
|
# Configure S3 support if desired.
|
||||||
|
# The public S3 endpoint is different depending on region and provider,
|
||||||
|
# consult your S3 provider's documentation for details on what to use.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.S3,
|
||||||
|
# bucket: "some-bucket",
|
||||||
|
# public_endpoint: "https://s3.amazonaws.com"
|
||||||
|
#
|
||||||
|
# Configure S3 credentials:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# access_key_id: "xxxxxxxxxxxxx",
|
||||||
|
# secret_access_key: "yyyyyyyyyyyy",
|
||||||
|
# region: "us-east-1",
|
||||||
|
# scheme: "https://"
|
||||||
|
#
|
||||||
|
# For using third-party S3 clones like wasabi, also do:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# host: "s3.wasabisys.com"
|
||||||
|
|
||||||
|
|
||||||
|
# Configure Openstack Swift support if desired.
|
||||||
|
#
|
||||||
|
# Many openstack deployments are different, so config is left very open with
|
||||||
|
# no assumptions made on which provider you're using. This should allow very
|
||||||
|
# wide support without needing separate handlers for OVH, Rackspace, etc.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.Swift,
|
||||||
|
# container: "some-container",
|
||||||
|
# username: "api-username-yyyy",
|
||||||
|
# password: "api-key-xxxx",
|
||||||
|
# tenant_id: "<openstack-project/tenant-id>",
|
||||||
|
# auth_url: "https://keystone-endpoint.provider.com",
|
||||||
|
# storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
|
||||||
|
# object_url: "https://cdn-endpoint.provider.com/<container>"
|
||||||
|
#
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Upload,
|
||||||
|
uploader: Pleroma.Uploaders.Local,
|
||||||
|
filters: [Pleroma.Upload.Filter.Dedupe],
|
||||||
|
link_name: true,
|
||||||
|
proxy_remote: true,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :upload
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
|
||||||
|
|
||||||
|
config :pleroma, :chat, enabled: true
|
||||||
|
|
||||||
|
config :ecto, json_library: Jason
|
||||||
|
|
||||||
|
config :phoenix, :format_encoders, json: Jason
|
||||||
|
|
||||||
|
config :pleroma, :gopher,
|
||||||
|
enabled: true,
|
||||||
|
ip: {172, 2, 0, 101},
|
||||||
|
port: 9999
|
||||||
|
|
||||||
|
config :pleroma, :suggestions,
|
||||||
|
enabled: true,
|
||||||
|
third_party_engine:
|
||||||
|
"http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
|
||||||
|
timeout: 300_000,
|
||||||
|
web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
|
||||||
|
|
||||||
168
production/pleroma/pleroma/config/prod.exs
Archivo normal
@@ -0,0 +1,168 @@
|
|||||||
|
# Pleroma instance configuration
|
||||||
|
|
||||||
|
# NOTE: This file should not be committed to a repo or otherwise made public
|
||||||
|
# without removing sensitive information.
|
||||||
|
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# Configures the endpoint
|
||||||
|
websocket_config = [
|
||||||
|
path: "/socket",
|
||||||
|
serializer: [
|
||||||
|
{Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
|
||||||
|
{Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
|
||||||
|
],
|
||||||
|
timeout: 60_000,
|
||||||
|
transport_log: false,
|
||||||
|
compress: false
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
url: [host: "social.hatthieves.es", scheme: "https", port: 443],
|
||||||
|
secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8",
|
||||||
|
signing_salt: "g0uP6uv4",
|
||||||
|
instrumenters: [Pleroma.Web.Endpoint.Instrumenter],
|
||||||
|
http: [
|
||||||
|
dispatch: [
|
||||||
|
{:_,
|
||||||
|
[
|
||||||
|
{"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
|
||||||
|
{"/socket", Phoenix.Endpoint.CowboyWebSocket,
|
||||||
|
{Phoenix.Transports.WebSocket,
|
||||||
|
{Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
|
||||||
|
{:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
|
||||||
|
]}
|
||||||
|
],
|
||||||
|
port: 4000,
|
||||||
|
ip: {0, 0, 0, 0}
|
||||||
|
# ip: {172, 2, 0, 101}
|
||||||
|
],
|
||||||
|
render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
|
||||||
|
pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
|
||||||
|
secure_cookie_flag: true
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 150
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "HatThieves/Pleroma",
|
||||||
|
email: "info@hatthieves.es",
|
||||||
|
notify_email: "info@hatthieves.es",
|
||||||
|
limit: 5000,
|
||||||
|
registrations_open: true,
|
||||||
|
dedupe_media: true,
|
||||||
|
upload_limit: 25_000_000,
|
||||||
|
federating: true,
|
||||||
|
allow_relay: true,
|
||||||
|
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
|
||||||
|
public: true,
|
||||||
|
quarantined_instances: [],
|
||||||
|
dynamic_configuration: true,
|
||||||
|
managed_config: true
|
||||||
|
|
||||||
|
config :logger, :console,
|
||||||
|
format: "$time $metadata[$level] $message\n",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
config :pleroma, :frontend_configurations,
|
||||||
|
pleroma_fe: %{
|
||||||
|
theme: "monokai",
|
||||||
|
background: "/static/aurora_borealis.jpg",
|
||||||
|
logo: "/static/logo.png",
|
||||||
|
logoMask: true,
|
||||||
|
logoMargin: ".1em",
|
||||||
|
redirectRootNoLogin: "/main/all",
|
||||||
|
redirectRootLogin: "/main/friends",
|
||||||
|
chatDisabled: false,
|
||||||
|
showInstanceSpecificPanel: true,
|
||||||
|
collapseMessageWithSubject: false,
|
||||||
|
scopeCopy: true,
|
||||||
|
subjectLineBehavior: "email",
|
||||||
|
postContentType: "text/plain",
|
||||||
|
alwaysShowSubjectInput: true,
|
||||||
|
hidePostStats: false,
|
||||||
|
hideUserStats: false,
|
||||||
|
loginMethod: "password",
|
||||||
|
webPushNotifications: true,
|
||||||
|
noAttachmentLinks: false,
|
||||||
|
nsfwCensorImage: "",
|
||||||
|
showFeaturesPanel: true,
|
||||||
|
minimalScopesMode: false
|
||||||
|
},
|
||||||
|
masto_fe: %{
|
||||||
|
showInstanceSpecificPanel: true
|
||||||
|
}
|
||||||
|
|
||||||
|
config :pleroma, :hackney_pools,
|
||||||
|
federation: [
|
||||||
|
max_connections: 130,
|
||||||
|
timeout: 150_000
|
||||||
|
],
|
||||||
|
media: [
|
||||||
|
max_connections: 50,
|
||||||
|
timeout: 150_000
|
||||||
|
],
|
||||||
|
upload: [
|
||||||
|
max_connections: 50,
|
||||||
|
timeout: 300_000
|
||||||
|
]
|
||||||
|
|
||||||
|
config :logger, :console,
|
||||||
|
level: :error,
|
||||||
|
format: "$metadata[$level] $message",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
config :logger, :ex_syslogger,
|
||||||
|
level: :error,
|
||||||
|
ident: "pleroma",
|
||||||
|
format: "$metadata[$level] $message",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
# Configure web push notifications
|
||||||
|
config :web_push_encryption, :vapid_details,
|
||||||
|
subject: "mailto:info@hatthieves.es",
|
||||||
|
public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw",
|
||||||
|
private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Upload,
|
||||||
|
uploader: Pleroma.Uploaders.Local,
|
||||||
|
filters: [Pleroma.Upload.Filter.Dedupe],
|
||||||
|
link_name: true,
|
||||||
|
proxy_remote: false,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :upload
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
|
||||||
|
|
||||||
|
config :pleroma, :chat, enabled: false
|
||||||
|
|
||||||
|
config :phoenix, :format_encoders, json: Jason
|
||||||
|
|
||||||
|
config :pleroma, :gopher,
|
||||||
|
enabled: true,
|
||||||
|
ip: {172,2,0,101},
|
||||||
|
port: 9999
|
||||||
|
|
||||||
|
config :pleroma, :suggestions,
|
||||||
|
enabled: true,
|
||||||
|
third_party_engine:
|
||||||
|
"http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
|
||||||
|
timeout: 300_000,
|
||||||
|
web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
|
||||||
|
|
||||||
|
#config :pleroma_job_queue, :queues,
|
||||||
|
# federator_incoming: 100,
|
||||||
|
# federator_outgoing: 100
|
||||||
|
|
||||||
|
import_config "#{Mix.env()}.secret.exs"
|
||||||
173
production/pleroma/pleroma/config/prod.exs.backup
Archivo normal
@@ -0,0 +1,173 @@
|
|||||||
|
# Pleroma instance configuration
|
||||||
|
|
||||||
|
# NOTE: This file should not be committed to a repo or otherwise made public
|
||||||
|
# without removing sensitive information.
|
||||||
|
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# Configures the endpoint
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
url: [host: "social.hatthieves.es", scheme: "https", port: 443],
|
||||||
|
secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8",
|
||||||
|
signing_salt: "g0uP6uv4"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 10
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "Pleroma/HatThieves.es",
|
||||||
|
email: "info@hatthieves.es",
|
||||||
|
notify_email: "info@hatthieves.es",
|
||||||
|
limit: 5000,
|
||||||
|
registrations_open: true,
|
||||||
|
dedupe_media: true,
|
||||||
|
upload_limit: 25_000_000,
|
||||||
|
federating: true,
|
||||||
|
allow_relay: true,
|
||||||
|
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
|
||||||
|
public: true,
|
||||||
|
quarantined_instances: [],
|
||||||
|
dynamic_configuration: true
|
||||||
|
|
||||||
|
config :logger, :console,
|
||||||
|
format: "$time $metadata[$level] $message\n",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
#config :mime, :types, %{
|
||||||
|
# "application/xml" => ["xml"],
|
||||||
|
# "application/xrd+xml" => ["xrd+xml"],
|
||||||
|
# "application/activity+json" => ["activity+json"],
|
||||||
|
# "application/ld+json" => ["activity+json"]
|
||||||
|
#}
|
||||||
|
|
||||||
|
config :pleroma, :websub, Pleroma.Web.Websub
|
||||||
|
config :pleroma, :ostatus, Pleroma.Web.OStatus
|
||||||
|
config :pleroma, :httpoison, Pleroma.HTTP
|
||||||
|
|
||||||
|
version =
|
||||||
|
with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
|
||||||
|
"Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
|
||||||
|
else
|
||||||
|
_ -> "Pleroma #{Mix.Project.config()[:version]} dev"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Configures http settings, upstream proxy etc.
|
||||||
|
config :pleroma, :http, proxy_url: nil
|
||||||
|
|
||||||
|
config :pleroma, :activitypub,
|
||||||
|
accept_blocks: true,
|
||||||
|
unfollow_blocked: true,
|
||||||
|
outgoing_blocks: true
|
||||||
|
|
||||||
|
#config :pleroma, Pleroma.Uploaders.S3, s3_bucket: nil
|
||||||
|
|
||||||
|
config :pleroma, :uri_schemes, additionnal_schemes: []
|
||||||
|
|
||||||
|
config :pleroma, :user, deny_follow_blocked: true
|
||||||
|
|
||||||
|
config :pleroma, :mrf_rejectnonpublic,
|
||||||
|
allow_followersonly: false,
|
||||||
|
allow_direct: false
|
||||||
|
|
||||||
|
config :pleroma, :mrf_simple,
|
||||||
|
media_removal: [],
|
||||||
|
media_nsfw: [],
|
||||||
|
federated_timeline_removal: [],
|
||||||
|
reject: [],
|
||||||
|
accept: []
|
||||||
|
|
||||||
|
config :pleroma, :media_proxy,
|
||||||
|
enabled: false,
|
||||||
|
redirect_on_failure: true
|
||||||
|
#base_url: "https://cache.pleroma.social"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 10
|
||||||
|
|
||||||
|
# Configure web push notifications
|
||||||
|
config :web_push_encryption, :vapid_details,
|
||||||
|
subject: "mailto:info@hatthieves.es",
|
||||||
|
public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw",
|
||||||
|
private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY"
|
||||||
|
|
||||||
|
# Enable Strict-Transport-Security once SSL is working:
|
||||||
|
# config :pleroma, :http_security,
|
||||||
|
# sts: true
|
||||||
|
|
||||||
|
# Configure S3 support if desired.
|
||||||
|
# The public S3 endpoint is different depending on region and provider,
|
||||||
|
# consult your S3 provider's documentation for details on what to use.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.S3,
|
||||||
|
# bucket: "some-bucket",
|
||||||
|
# public_endpoint: "https://s3.amazonaws.com"
|
||||||
|
#
|
||||||
|
# Configure S3 credentials:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# access_key_id: "xxxxxxxxxxxxx",
|
||||||
|
# secret_access_key: "yyyyyyyyyyyy",
|
||||||
|
# region: "us-east-1",
|
||||||
|
# scheme: "https://"
|
||||||
|
#
|
||||||
|
# For using third-party S3 clones like wasabi, also do:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# host: "s3.wasabisys.com"
|
||||||
|
|
||||||
|
|
||||||
|
# Configure Openstack Swift support if desired.
|
||||||
|
#
|
||||||
|
# Many openstack deployments are different, so config is left very open with
|
||||||
|
# no assumptions made on which provider you're using. This should allow very
|
||||||
|
# wide support without needing separate handlers for OVH, Rackspace, etc.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.Swift,
|
||||||
|
# container: "some-container",
|
||||||
|
# username: "api-username-yyyy",
|
||||||
|
# password: "api-key-xxxx",
|
||||||
|
# tenant_id: "<openstack-project/tenant-id>",
|
||||||
|
# auth_url: "https://keystone-endpoint.provider.com",
|
||||||
|
# storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
|
||||||
|
# object_url: "https://cdn-endpoint.provider.com/<container>"
|
||||||
|
#
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Upload,
|
||||||
|
uploader: Pleroma.Uploaders.Local,
|
||||||
|
filters: [Pleroma.Upload.Filter.Dedupe],
|
||||||
|
link_name: true,
|
||||||
|
proxy_remote: true,
|
||||||
|
proxy_opts: [
|
||||||
|
redirect_on_failure: false,
|
||||||
|
max_body_length: 25 * 1_048_576,
|
||||||
|
http: [
|
||||||
|
follow_redirect: true,
|
||||||
|
pool: :upload
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
|
||||||
|
|
||||||
|
config :pleroma, :chat, enabled: true
|
||||||
|
|
||||||
|
config :phoenix, :format_encoders, json: Jason
|
||||||
|
|
||||||
|
config :pleroma, :gopher,
|
||||||
|
enabled: true,
|
||||||
|
ip: {172, 2, 0, 101},
|
||||||
|
port: 9999
|
||||||
|
|
||||||
|
config :pleroma, :suggestions,
|
||||||
|
enabled: true,
|
||||||
|
third_party_engine:
|
||||||
|
"http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
|
||||||
|
timeout: 300_000,
|
||||||
|
web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
|
||||||
189
production/pleroma/pleroma/config/prod.secret.exs
Archivo normal
@@ -0,0 +1,189 @@
|
|||||||
|
# Pleroma instance configuration
|
||||||
|
|
||||||
|
# NOTE: This file should not be committed to a repo or otherwise made public
|
||||||
|
# without removing sensitive information.
|
||||||
|
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# Configures the endpoint
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
url: [host: "pleroma.hatthieves.es", scheme: "https", port: 443],
|
||||||
|
secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8",
|
||||||
|
signing_salt: "g0uP6uv4"
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "Pleroma/HatThieves.es",
|
||||||
|
email: "info@hatthieves.es",
|
||||||
|
notify_email: "info@hatthieves.es",
|
||||||
|
limit: 8192,
|
||||||
|
registrations_open: true,
|
||||||
|
dedupe_media: true,
|
||||||
|
upload_limit: 25_000_000,
|
||||||
|
federating: true,
|
||||||
|
allow_relay: true,
|
||||||
|
rewrite_policy: Pleroma.Web.ActivityPub.MRF.SimplePolicy,
|
||||||
|
public: true,
|
||||||
|
quarantined_instances: [],
|
||||||
|
dynamic_configuration: true
|
||||||
|
|
||||||
|
config :logger, :console,
|
||||||
|
format: "$time $metadata[$level] $message\n",
|
||||||
|
metadata: [:request_id]
|
||||||
|
|
||||||
|
#config :mime, :types, %{
|
||||||
|
# "application/xml" => ["xml"],
|
||||||
|
# "application/xrd+xml" => ["xrd+xml"],
|
||||||
|
# "application/activity+json" => ["activity+json"],
|
||||||
|
# "application/ld+json" => ["activity+json"]
|
||||||
|
#}
|
||||||
|
|
||||||
|
config :pleroma, :websub, Pleroma.Web.Websub
|
||||||
|
config :pleroma, :ostatus, Pleroma.Web.OStatus
|
||||||
|
config :pleroma, :httpoison, Pleroma.HTTP
|
||||||
|
|
||||||
|
version =
|
||||||
|
with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
|
||||||
|
"Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
|
||||||
|
else
|
||||||
|
_ -> "Pleroma #{Mix.Project.config()[:version]} dev"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Configures http settings, upstream proxy etc.
|
||||||
|
config :pleroma, :http, proxy_url: nil
|
||||||
|
|
||||||
|
config :pleroma, :activitypub,
|
||||||
|
accept_blocks: true,
|
||||||
|
unfollow_blocked: true,
|
||||||
|
outgoing_blocks: true
|
||||||
|
|
||||||
|
config :pleroma, :hackney_pools,
|
||||||
|
federation: [
|
||||||
|
max_connections: 200,
|
||||||
|
timeout: 300_000
|
||||||
|
],
|
||||||
|
media: [
|
||||||
|
max_connections: 100,
|
||||||
|
timeout: 300_000
|
||||||
|
],
|
||||||
|
upload: [
|
||||||
|
max_connections: 100,
|
||||||
|
timeout: 500_000
|
||||||
|
]
|
||||||
|
|
||||||
|
config :pleroma, :streamer,
|
||||||
|
workers: 10,
|
||||||
|
overflow_workers: 5
|
||||||
|
|
||||||
|
#config :pleroma, Pleroma.Uploaders.S3, s3_bucket: nil
|
||||||
|
|
||||||
|
config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
|
||||||
|
|
||||||
|
config :pleroma, :uri_schemes, additionnal_schemes: []
|
||||||
|
|
||||||
|
config :pleroma, :user, deny_follow_blocked: true
|
||||||
|
|
||||||
|
config :pleroma, :mrf_rejectnonpublic,
|
||||||
|
allow_followersonly: false,
|
||||||
|
allow_direct: false
|
||||||
|
|
||||||
|
config :pleroma, :mrf_simple,
|
||||||
|
media_removal: ["gab.com"],
|
||||||
|
media_nsfw: [],
|
||||||
|
federated_timeline_removal: ["gab.com"],
|
||||||
|
report_removal: ["gab.com"],
|
||||||
|
reject: ["gab.com"],
|
||||||
|
accept: [],
|
||||||
|
avatar_removal: ["gab.com"],
|
||||||
|
banner_removal: ["gab.com"]
|
||||||
|
|
||||||
|
config :pleroma, :media_proxy,
|
||||||
|
enabled: false,
|
||||||
|
redirect_on_failure: true
|
||||||
|
#base_url: "https://cache.pleroma.social"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 130
|
||||||
|
# timeout: 50000
|
||||||
|
|
||||||
|
# Configure web push notifications
|
||||||
|
config :web_push_encryption, :vapid_details,
|
||||||
|
subject: "mailto:info@hatthieves.es",
|
||||||
|
public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw",
|
||||||
|
private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY"
|
||||||
|
|
||||||
|
# Enable Strict-Transport-Security once SSL is working:
|
||||||
|
# config :pleroma, :http_security,
|
||||||
|
# sts: true
|
||||||
|
|
||||||
|
# Configure S3 support if desired.
|
||||||
|
# The public S3 endpoint is different depending on region and provider,
|
||||||
|
# consult your S3 provider's documentation for details on what to use.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.S3,
|
||||||
|
# bucket: "some-bucket",
|
||||||
|
# public_endpoint: "https://s3.amazonaws.com"
|
||||||
|
#
|
||||||
|
# Configure S3 credentials:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# access_key_id: "xxxxxxxxxxxxx",
|
||||||
|
# secret_access_key: "yyyyyyyyyyyy",
|
||||||
|
# region: "us-east-1",
|
||||||
|
# scheme: "https://"
|
||||||
|
#
|
||||||
|
# For using third-party S3 clones like wasabi, also do:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# host: "s3.wasabisys.com"
|
||||||
|
|
||||||
|
|
||||||
|
# Configure Openstack Swift support if desired.
|
||||||
|
#
|
||||||
|
# Many openstack deployments are different, so config is left very open with
|
||||||
|
# no assumptions made on which provider you're using. This should allow very
|
||||||
|
# wide support without needing separate handlers for OVH, Rackspace, etc.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.Swift,
|
||||||
|
# container: "some-container",
|
||||||
|
# username: "api-username-yyyy",
|
||||||
|
# password: "api-key-xxxx",
|
||||||
|
# tenant_id: "<openstack-project/tenant-id>",
|
||||||
|
# auth_url: "https://keystone-endpoint.provider.com",
|
||||||
|
# storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
|
||||||
|
# object_url: "https://cdn-endpoint.provider.com/<container>"
|
||||||
|
#
|
||||||
|
|
||||||
|
#config :pleroma, Pleroma.Upload,
|
||||||
|
# uploader: Pleroma.Uploaders.Local,
|
||||||
|
# filters: [Pleroma.Upload.Filter.Dedupe],
|
||||||
|
# link_name: true,
|
||||||
|
# proxy_remote: true,
|
||||||
|
# proxy_opts: [
|
||||||
|
# redirect_on_failure: false,
|
||||||
|
# max_body_length: 25 * 1_048_576,
|
||||||
|
# http: [
|
||||||
|
# follow_redirect: true,
|
||||||
|
# pool: :upload
|
||||||
|
# ]
|
||||||
|
# ]
|
||||||
|
|
||||||
|
#config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
|
||||||
|
|
||||||
|
config :pleroma, :chat, enabled: true
|
||||||
|
|
||||||
|
config :phoenix, :format_encoders, json: Jason
|
||||||
|
|
||||||
|
config :pleroma, :gopher,
|
||||||
|
enabled: true,
|
||||||
|
ip: {172, 2, 0, 101},
|
||||||
|
port: 9999
|
||||||
|
|
||||||
|
config :pleroma, :suggestions,
|
||||||
|
enabled: true,
|
||||||
|
third_party_engine:
|
||||||
|
"http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
|
||||||
|
timeout: 300_000,
|
||||||
|
web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
|
||||||
78
production/pleroma/pleroma/config/prod.secret.exs.old
Archivo normal
@@ -0,0 +1,78 @@
|
|||||||
|
# Pleroma instance configuration
|
||||||
|
|
||||||
|
# NOTE: This file should not be committed to a repo or otherwise made public
|
||||||
|
# without removing sensitive information.
|
||||||
|
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
url: [host: "social.hatthieves.es", scheme: "https", port: 443],
|
||||||
|
secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8",
|
||||||
|
signing_salt: "g0uP6uv4"
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
name: "Pleroma/HatThieves.es",
|
||||||
|
email: "info@hatthieves.es",
|
||||||
|
notify_email: "info@hatthieves.es",
|
||||||
|
limit: 5000,
|
||||||
|
registrations_open: true,
|
||||||
|
dedupe_media: false
|
||||||
|
|
||||||
|
config :pleroma, :media_proxy,
|
||||||
|
enabled: false,
|
||||||
|
redirect_on_failure: true
|
||||||
|
#base_url: "https://cache.pleroma.social"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "pl3r0m4.",
|
||||||
|
database: "pleroma",
|
||||||
|
hostname: "172.2.0.102",
|
||||||
|
pool_size: 10
|
||||||
|
|
||||||
|
# Configure web push notifications
|
||||||
|
config :web_push_encryption, :vapid_details,
|
||||||
|
subject: "mailto:info@hatthieves.es",
|
||||||
|
public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw",
|
||||||
|
private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY"
|
||||||
|
|
||||||
|
# Enable Strict-Transport-Security once SSL is working:
|
||||||
|
# config :pleroma, :http_security,
|
||||||
|
# sts: true
|
||||||
|
|
||||||
|
# Configure S3 support if desired.
|
||||||
|
# The public S3 endpoint is different depending on region and provider,
|
||||||
|
# consult your S3 provider's documentation for details on what to use.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.S3,
|
||||||
|
# bucket: "some-bucket",
|
||||||
|
# public_endpoint: "https://s3.amazonaws.com"
|
||||||
|
#
|
||||||
|
# Configure S3 credentials:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# access_key_id: "xxxxxxxxxxxxx",
|
||||||
|
# secret_access_key: "yyyyyyyyyyyy",
|
||||||
|
# region: "us-east-1",
|
||||||
|
# scheme: "https://"
|
||||||
|
#
|
||||||
|
# For using third-party S3 clones like wasabi, also do:
|
||||||
|
# config :ex_aws, :s3,
|
||||||
|
# host: "s3.wasabisys.com"
|
||||||
|
|
||||||
|
|
||||||
|
# Configure Openstack Swift support if desired.
|
||||||
|
#
|
||||||
|
# Many openstack deployments are different, so config is left very open with
|
||||||
|
# no assumptions made on which provider you're using. This should allow very
|
||||||
|
# wide support without needing separate handlers for OVH, Rackspace, etc.
|
||||||
|
#
|
||||||
|
# config :pleroma, Pleroma.Uploaders.Swift,
|
||||||
|
# container: "some-container",
|
||||||
|
# username: "api-username-yyyy",
|
||||||
|
# password: "api-key-xxxx",
|
||||||
|
# tenant_id: "<openstack-project/tenant-id>",
|
||||||
|
# auth_url: "https://keystone-endpoint.provider.com",
|
||||||
|
# storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
|
||||||
|
# object_url: "https://cdn-endpoint.provider.com/<container>"
|
||||||
|
#
|
||||||
8
production/pleroma/pleroma/config/setup_db.psql
Archivo normal
@@ -0,0 +1,8 @@
|
|||||||
|
CREATE USER pleroma WITH ENCRYPTED PASSWORD 'pl3r0m4.';
|
||||||
|
CREATE DATABASE pleroma OWNER pleroma;
|
||||||
|
\c pleroma;
|
||||||
|
--Extensions made by ecto.migrate that need superuser access
|
||||||
|
CREATE EXTENSION IF NOT EXISTS citext;
|
||||||
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||||
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||||
|
|
||||||
77
production/pleroma/pleroma/config/test.exs
Archivo normal
@@ -0,0 +1,77 @@
|
|||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
# We don't run a server during test. If one is required,
|
||||||
|
# you can enable the server option below.
|
||||||
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
|
http: [port: 4001],
|
||||||
|
url: [port: 4001],
|
||||||
|
server: true
|
||||||
|
|
||||||
|
# Disable captha for tests
|
||||||
|
config :pleroma, Pleroma.Captcha,
|
||||||
|
# It should not be enabled for automatic tests
|
||||||
|
enabled: false,
|
||||||
|
# A fake captcha service for tests
|
||||||
|
method: Pleroma.Captcha.Mock
|
||||||
|
|
||||||
|
# Print only warnings and errors during test
|
||||||
|
config :logger, level: :warn
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Upload, filters: [], link_name: false
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
email: "admin@example.com",
|
||||||
|
notify_email: "noreply@example.com"
|
||||||
|
|
||||||
|
# Configure your database
|
||||||
|
config :pleroma, Pleroma.Repo,
|
||||||
|
adapter: Ecto.Adapters.Postgres,
|
||||||
|
username: "postgres",
|
||||||
|
password: "postgres",
|
||||||
|
database: "pleroma_test",
|
||||||
|
hostname: System.get_env("DB_HOST") || "localhost",
|
||||||
|
pool: Ecto.Adapters.SQL.Sandbox
|
||||||
|
|
||||||
|
# Reduce hash rounds for testing
|
||||||
|
config :pbkdf2_elixir, rounds: 1
|
||||||
|
|
||||||
|
config :tesla, adapter: Tesla.Mock
|
||||||
|
config :pleroma, :rich_media, enabled: false
|
||||||
|
|
||||||
|
config :web_push_encryption, :vapid_details,
|
||||||
|
subject: "mailto:administrator@example.com",
|
||||||
|
public_key:
|
||||||
|
"BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
|
||||||
|
private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
|
||||||
|
|
||||||
|
config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
|
||||||
|
|
||||||
|
config :pleroma_job_queue, disabled: true
|
||||||
|
|
||||||
|
config :pleroma, Pleroma.ScheduledActivity,
|
||||||
|
daily_user_limit: 2,
|
||||||
|
total_user_limit: 3,
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
config :pleroma, :app_account_creation, max_requests: 5
|
||||||
|
|
||||||
|
config :pleroma, :http_security, report_uri: "https://endpoint.com"
|
||||||
|
|
||||||
|
config :pleroma, :http, send_user_agent: false
|
||||||
|
|
||||||
|
rum_enabled = System.get_env("RUM_ENABLED") == "true"
|
||||||
|
config :pleroma, :database, rum_enabled: rum_enabled
|
||||||
|
IO.puts("RUM enabled: #{rum_enabled}")
|
||||||
|
|
||||||
|
try do
|
||||||
|
import_config "test.secret.exs"
|
||||||
|
rescue
|
||||||
|
_ ->
|
||||||
|
IO.puts(
|
||||||
|
"You may want to create test.secret.exs to declare custom database connection parameters."
|
||||||
|
)
|
||||||
|
end
|
||||||
26
production/pleroma/pleroma/custom_emoji.txt
Archivo normal
@@ -0,0 +1,26 @@
|
|||||||
|
ale, /emoji/custom/images/ale.png
|
||||||
|
barbacoa01, /emoji/custom/images/barbacoa01.png
|
||||||
|
barbacoa02, /emoji/custom/images/barbacoa02.png
|
||||||
|
barbacoa03, /emoji/custom/images/barbacoa03.png
|
||||||
|
barbacoa04, /emoji/custom/images/barbacoa04.png
|
||||||
|
barbacoa05, /emoji/custom/images/barbacoa05.png
|
||||||
|
barbacoa06, /emoji/custom/images/barbacoa06.png
|
||||||
|
barbacoa07, /emoji/custom/images/barbacoa07.png
|
||||||
|
barbacoa08, /emoji/custom/images/barbacoa08.png
|
||||||
|
barbacoa09, /emoji/custom/images/barbacoa09.png
|
||||||
|
barbacoa10, /emoji/custom/images/barbacoa10.png
|
||||||
|
barbacoa11, /emoji/custom/images/barbacoa11.png
|
||||||
|
barbacoa12, /emoji/custom/images/barbacoa12.png
|
||||||
|
barbacoa13, /emoji/custom/images/barbacoa13.png
|
||||||
|
barbacoa14, /emoji/custom/images/barbacoa14.png
|
||||||
|
barbacoa15, /emoji/custom/images/barbacoa15.png
|
||||||
|
barbacoa16, /emoji/custom/images/barbacoa16.png
|
||||||
|
barbacoa17, /emoji/custom/images/barbacoa17.png
|
||||||
|
barbacoa18, /emoji/custom/images/barbacoa18.png
|
||||||
|
barbacoa19, /emoji/custom/images/barbacoa19.png
|
||||||
|
barbacoa20, /emoji/custom/images/barbacoa20.png
|
||||||
|
barbacoa21, /emoji/custom/images/barbacoa21.png
|
||||||
|
barbacoa22, /emoji/custom/images/barbacoa22.png
|
||||||
|
barbacoa23, /emoji/custom/images/barbacoa23.png
|
||||||
|
barbacoa24, /emoji/custom/images/barbacoa24.png
|
||||||
|
lol, /emoji/custom/images/lol.gif
|
||||||
30
production/pleroma/pleroma/emoji.txt
Archivo normal
@@ -0,0 +1,30 @@
|
|||||||
|
firefox, /emoji/Firefox.gif, Gif,Fun
|
||||||
|
blank, /emoji/blank.png, Fun
|
||||||
|
f_00b, /emoji/f_00b.png
|
||||||
|
f_00b11b, /emoji/f_00b11b.png
|
||||||
|
f_00b33b, /emoji/f_00b33b.png
|
||||||
|
f_00h, /emoji/f_00h.png
|
||||||
|
f_00t, /emoji/f_00t.png
|
||||||
|
f_01b, /emoji/f_01b.png
|
||||||
|
f_03b, /emoji/f_03b.png
|
||||||
|
f_10b, /emoji/f_10b.png
|
||||||
|
f_11b, /emoji/f_11b.png
|
||||||
|
f_11b00b, /emoji/f_11b00b.png
|
||||||
|
f_11b22b, /emoji/f_11b22b.png
|
||||||
|
f_11h, /emoji/f_11h.png
|
||||||
|
f_11t, /emoji/f_11t.png
|
||||||
|
f_12b, /emoji/f_12b.png
|
||||||
|
f_21b, /emoji/f_21b.png
|
||||||
|
f_22b, /emoji/f_22b.png
|
||||||
|
f_22b11b, /emoji/f_22b11b.png
|
||||||
|
f_22b33b, /emoji/f_22b33b.png
|
||||||
|
f_22h, /emoji/f_22h.png
|
||||||
|
f_22t, /emoji/f_22t.png
|
||||||
|
f_23b, /emoji/f_23b.png
|
||||||
|
f_30b, /emoji/f_30b.png
|
||||||
|
f_32b, /emoji/f_32b.png
|
||||||
|
f_33b, /emoji/f_33b.png
|
||||||
|
f_33b00b, /emoji/f_33b00b.png
|
||||||
|
f_33b22b, /emoji/f_33b22b.png
|
||||||
|
f_33h, /emoji/f_33h.png
|
||||||
|
f_33t, /emoji/f_33t.png
|
||||||
BIN
production/pleroma/pleroma/emojis/ale.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 73 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa01.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 90 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa02.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 73 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa03.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 94 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa04.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 99 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa05.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 95 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa06.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 105 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa07.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 58 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa08.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 88 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa09.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 92 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa10.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 118 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa11.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 99 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa12.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 78 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa13.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 53 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa14.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 101 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa15.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 103 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa16.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 59 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa17.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 107 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa18.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 116 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa19.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 88 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa20.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 107 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa21.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 106 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa22.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 106 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa23.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 71 KiB |
BIN
production/pleroma/pleroma/emojis/barbacoa24.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 102 KiB |
BIN
production/pleroma/pleroma/emojis/lol.gif
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 381 KiB |
BIN
production/pleroma/pleroma/images/ht.png
Archivo normal
|
Después Anchura: | Altura: | Tamaño: 3.7 KiB |
12
production/pleroma/pleroma/index.html
Archivo normal
@@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,user-scalable=no"><title>Pleroma</title><!--server-generated-meta--><link rel=icon type=image/png href=/favicon.png><link rel=stylesheet href=/static/font/css/fontello.css><link rel=stylesheet href=/static/font/css/animation.css><link href=/static/css/vendors~app.b2603a50868c68a1c192.css rel=stylesheet><link href=/static/css/app.fd71461124f3eb029b1b.css rel=stylesheet></head><body class=hidden><noscript>To use Pleroma, please enable JavaScript.</noscript><div id=app></div><script type=text/javascript src=/static/js/vendors~app.5c3fab032deb5f2793cb.js></script><script type=text/javascript src=/static/js/app.105d64a8fcdd6724ccde.js></script>
|
||||||
|
<!-- Start of Rocket.Chat Livechat Script -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function(w, d, s, u) {
|
||||||
|
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;
|
||||||
|
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
|
||||||
|
j.async = true; j.src = 'https://talk.hatthieves.es/livechat/rocketchat-livechat.min.js?_=201903270000';
|
||||||
|
h.parentNode.insertBefore(j, h);
|
||||||
|
})(window, document, 'script', 'https://talk.hatthieves.es/livechat');
|
||||||
|
</script>
|
||||||
|
<!-- End of Rocket.Chat Livechat Script -->
|
||||||
|
</body></html>
|
||||||
12
production/pleroma/pleroma/vm.args.eex
Archivo normal
@@ -0,0 +1,12 @@
|
|||||||
|
## Customize flags given to the VM: http://erlang.org/doc/man/erl.html
|
||||||
|
## -mode/-name/-sname/-setcookie are configured via env vars, do not set them here
|
||||||
|
|
||||||
|
## Number of dirty schedulers doing IO work (file, sockets, etc)
|
||||||
|
##+SDio 5
|
||||||
|
|
||||||
|
## Increase number of concurrent ports/sockets
|
||||||
|
##+Q 65536
|
||||||
|
|
||||||
|
## Tweak GC to run more often
|
||||||
|
##-env ERL_FULLSWEEP_AFTER 10
|
||||||
|
+MMscs 3000
|
||||||