diff --git a/config/config.exs b/config/config.exs index 8a76c6517..683805fe3 100644 --- a/config/config.exs +++ b/config/config.exs @@ -64,9 +64,9 @@ config :pleroma, Pleroma.Upload, link_name: false, proxy_remote: false, filename_display_max_length: 30, - default_description: :filename, + default_description: nil, base_url: nil, - allowed_mime_types: ["image", "audio", "video", "application"] + allowed_mime_types: ["image", "audio", "video"] config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads" @@ -167,18 +167,18 @@ config :pleroma, :http, adapter: [] config :pleroma, :instance, - name: "Shigusegubu", - email: "pleroma@hjkos.com", - notify_email: "pleroma@hjkos.com", - description: "SigSegV, a pleroma instance", - short_description: "HJ's semi-personal instance", + name: "Pleroma", + email: "example@example.com", + notify_email: "noreply@example.com", + description: "Pleroma: An efficient and flexible fediverse server", + short_description: "", background_image: "/images/city.jpg", instance_thumbnail: "/instance/thumbnail.jpeg", favicon: "/favicon.png", limit: 5_000, description_limit: 5_000, remote_limit: 100_000, - upload_limit: 200_000_000, + upload_limit: 16_000_000, avatar_upload_limit: 2_000_000, background_upload_limit: 4_000_000, banner_upload_limit: 4_000_000, @@ -196,17 +196,19 @@ config :pleroma, :instance, federation_incoming_replies_max_depth: 100, allow_relay: true, public: true, - quarantined_instances: [{ "pleroma.rareome.ga", "leaks private posts or sumshit i dont rember" }], + quarantined_instances: [], rejected_instances: [], static_dir: "instance/static/", allowed_post_formats: [ "text/plain", + "text/html", + "text/markdown", "text/bbcode" ], autofollowed_nicknames: [], autofollowing_nicknames: [], max_pinned_statuses: 1, - attachment_links: true, + attachment_links: false, max_report_comment_size: 1000, report_strip_status: true, safe_dm_mentions: false, @@ -299,8 +301,8 @@ config :pleroma, :markup, config :pleroma, :frontend_configurations, pleroma_fe: %{ - alwaysShowSubjectInput: false, - background: "/static/sigsegv_s.png", + alwaysShowSubjectInput: true, + background: "/images/city.jpg", collapseMessageWithSubject: false, disableChat: false, greentext: false, @@ -314,18 +316,18 @@ config :pleroma, :frontend_configurations, logo: "/static/logo.svg", logoMargin: ".1em", logoMask: true, - minimalScopesMode: true, + minimalScopesMode: false, noAttachmentLinks: false, nsfwCensorImage: "", postContentType: "text/plain", redirectRootLogin: "/main/friends", redirectRootNoLogin: "/main/all", - scopeCopy: false, + scopeCopy: true, sidebarRight: false, showFeaturesPanel: true, - showInstanceSpecificPanel: true, - subjectLineBehavior: "noop", - theme: "sigsegv2", + showInstanceSpecificPanel: false, + subjectLineBehavior: "email", + theme: "pleroma-dark", webPushNotifications: false } @@ -384,23 +386,8 @@ config :pleroma, :mrf_hellthread, config :pleroma, :mrf_simple, media_removal: [], - media_nsfw: [ - { "preteengirls.biz", "pron or even cp" }, - { "melalandia.tk", "i don't rember" }, - { "pl.smuglo.li", "instance is dead but i still remember, rip smuglo" }, - { "baraag.net", "pron" }, - { "humblr.social", "3dpd pron" }, - { "pawoo.net", "tasteful pron, mostly." }, - { "sinblr.com", "3dpd pron" } - ], - federated_timeline_removal: [ - { "preteengirls.biz", "pron or even cp" }, - { "melalandia.tk", "i don't rember" }, - { "baraag.net", "pron" }, - { "humblr.social", "3dpd pron" }, - { "pawoo.net", "tasteful pron, mostly." }, - { "sinblr.com", "3dpd pron" } - ], + media_nsfw: [], + federated_timeline_removal: [], report_removal: [], reject: [], followers_only: [], @@ -511,7 +498,7 @@ config :pleroma, :media_preview_proxy, min_content_length: 100 * 1024 config :pleroma, :shout, - enabled: false, + enabled: true, limit: 5_000 config :phoenix, :format_encoders, json: Jason, "activity+json": Jason @@ -839,7 +826,7 @@ config :pleroma, :web_cache_ttl, config :pleroma, :modules, runtime_dir: "instance/modules" -config :pleroma, configurable_from_database: true +config :pleroma, configurable_from_database: false config :pleroma, Pleroma.Repo, parameters: [gin_fuzzy_search_limit: "500", jit: "off"], @@ -912,13 +899,9 @@ config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false config :pleroma, :mrf, policies: [ - Pleroma.Web.ActivityPub.MRF.SimplePolicy, - Pleroma.Web.ActivityPub.MRF.HellthreadPolicy, - Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicy, - Pleroma.Web.ActivityPub.MRF.TagPolicy, Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy, - Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy, - Pleroma.Web.ActivityPub.MRF.AntiLinkSpamPolicy + Pleroma.Web.ActivityPub.MRF.TagPolicy, + Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy ], transparency: true, transparency_exclusions: [] diff --git a/installation/pleroma.service b/installation/pleroma.service index 9e959e1ac..8338228d8 100644 --- a/installation/pleroma.service +++ b/installation/pleroma.service @@ -6,7 +6,6 @@ After=network.target postgresql.service ExecReload=/bin/kill $MAINPID KillMode=process Restart=on-failure -StandardOutput=journal ; Name of the user that runs the Pleroma service. User=pleroma @@ -15,11 +14,9 @@ Environment="MIX_ENV=prod" ; Make sure that all paths fit your installation. ; Path to the home directory of the user running the Pleroma service. -Environment="HOME=/home/pleroma" +Environment="HOME=/var/lib/pleroma" ; Path to the folder containing the Pleroma installation. -WorkingDirectory=/home/pleroma/pleroma -; Path to the environment file. the file contains RELEASE_COOKIE and etc -;EnvironmentFile=/opt/pleroma/config/pleroma.env +WorkingDirectory=/opt/pleroma ; Path to the Mix binary. ExecStart=/usr/bin/mix phx.server @@ -27,7 +24,7 @@ ExecStart=/usr/bin/mix phx.server ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops. PrivateTmp=true ; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Pleroma user has its home folder in one of the restricted places, or use one of these folders as its working directory, you have to set this to false. -ProtectHome=false +ProtectHome=true ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service. ProtectSystem=full ; Sets up a new /dev mount for the process and only adds API pseudo devices like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled by default because it may not work on devices like the Raspberry Pi. diff --git a/lib/pleroma/constants.ex b/lib/pleroma/constants.ex index ba775f430..c0411edbf 100644 --- a/lib/pleroma/constants.ex +++ b/lib/pleroma/constants.ex @@ -133,15 +133,11 @@ defmodule Pleroma.Constants do do: ~r/^[^[:cntrl:] ()<>@,;:\\"\/\[\]?=]+\/[^[:cntrl:] ()<>@,;:\\"\/\[\]?=]+(; .*)?$/ ) - const(activity_json_canonical_mime_type, - do: "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" - ) - - const(activity_json_mime_types, - do: [ - "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", - "application/activity+json" - ] + # List of allowed chars in the path segment of a URI + # unreserved, sub-delims, ":", "@" and "/" allowed as the separator in path + # https://datatracker.ietf.org/doc/html/rfc3986 + const(uri_path_allowed_reserved_chars, + do: ~c"!$&'()*+,;=/:@" ) const(upload_object_types, do: ["Document", "Image"]) diff --git a/lib/pleroma/web/templates/layout/app.html.eex b/lib/pleroma/web/templates/layout/app.html.eex index 99ab0ddad..e33bada85 100644 --- a/lib/pleroma/web/templates/layout/app.html.eex +++ b/lib/pleroma/web/templates/layout/app.html.eex @@ -13,10 +13,8 @@