summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-07-15Connection Pool: register workers using :viarinpatch
2020-07-15Connection pool: Fix race conditions in limit enforcementrinpatch
Fixes race conditions in limit enforcement by putting worker processes in a DynamicSupervisor
2020-07-15Connection pool: check that there actually is a resultrinpatch
Sometimes connections died before being released to the pool, resulting in MatchErrors
2020-07-15Connection Pool: don't enforce pool limits if no new connection needs to be ↵rinpatch
opened
2020-07-15Refactor gun pooling and simplify adapter option insertionrinpatch
This patch refactors gun pooling to use Elixir process registry and simplifies adapter option insertion. Having the pool use process registry instead of a GenServer has a number of advantages: - Simpler code: the initial implementation adds about half the lines of code it deletes - Concurrency: unlike a GenServer, ETS-based registry can handle multiple checkout/checkin requests at the same time - Precise and easy idle connection clousure: current proposal for closing idle connections in the GenServer-based pool needs to filter through all connections once a minute and compare their last active time with closing time. With Elixir process registry this can be done by just using `Process.send_after`/`Process.cancel_timer` in the worker process. - Lower memory footprint: In my tests `gun-memory-leak` branch uses about 290mb on peak load (250 connections) and 235mb on idle (5-10 connections). Registry-based pool uses 210mb on idle and 240mb on peak load
2020-07-14Merge branch 'feature/1922-media-proxy-whitelist' into 'develop'feld
Support for hosts with scheme in MediaProxy whitelist setting Closes #1922 See merge request pleroma/pleroma!2754
2020-07-14Merge branch 'fix/scrubber-recompile-warnings-as-errors' into 'develop'feld
Fix in-db configuration in dev environment See merge request pleroma/pleroma!2764
2020-07-14Merge branch '1940-admin-token-oauthless-auth' into 'develop'feld
[#1940] Reinstated OAuth-less `admin_token` authentication Closes #1940 See merge request pleroma/pleroma!2760
2020-07-14[#1940] Added `admin_token` param (as `admin_api_params/0`) to existing ↵Ivan Tashkinov
Admin API OpenAPI operations.
2020-07-14Merge branch '1916-transmogrifier-skipping-oddities-in-address-fields' into ↵feld
'develop' Transmogrifier: filtering weirdness in address fields Closes #1916 See merge request pleroma/pleroma!2762
2020-07-14Fix in-db configuration in dev environmentrinpatch
Previously, in-db configuration only worked when `warnings_as_errors` was disabled because re-compiling scrubbers on application restart created a warning about module conflicts. This patch fixes that by enabling `ignore_module_conflict` option of the compiler at runtime, and enables `warnings_as_errors` in prod since there is no reason to keep it disabled anymore.
2020-07-14[#1940] Applied rate limit for requests with bad `admin_token`. Added doc ↵Ivan Tashkinov
warnings on `admin_token` setting.
2020-07-19[#1940] Reinstated OAuth-less `admin_token` authentication. Refactored ↵Ivan Tashkinov
UserIsAdminPlug (freed from checking admin scopes presence).
2020-07-13Transmogrifier: filtering weirdness in address fields=
2020-07-13Merge branch 'config-behaviours-runtime' into 'develop'feld
Config/Docs: Expand behaviour suggestions modules at runtime Closes #1941 See merge request pleroma/pleroma!2755
2020-07-13Merge branch 'features/profile-fields-emojo' into 'develop'feld
user: Add support for custom emojis in profile fields See merge request pleroma/pleroma!2741
2020-07-13Merge branch 'chore/improve-database-config-docs' into 'develop'feld
Improve database config migration and add documentation See merge request pleroma/pleroma!2756
2020-07-13LintMark Felder
2020-07-13Pick up env for both source and OTP installsMark Felder
2020-07-13Merge branch '1937-renaming' into 'develop'Haelwenn
ActivityPub: Don't rename a clashing nickname with the same ap id. Closes #1937 See merge request pleroma/pleroma!2748
2020-07-12Still allow passing the arg, but fallback to MIX_ENVMark Felder
2020-07-12Improve database config migration and add documentationMark Felder
2020-07-12Config/Docs: Expand behaviour suggestions at runtimehref
2020-07-12MediaProxy whitelist setting now supports hosts with schemeAlexander Strizhakov
added deprecation warning about using bare domains
2020-07-10Remove unused @typesMark Felder
2020-07-10Add a moduledocMark Felder
2020-07-10Support Exiftool for stripping EXIF dataMark Felder
We really only want to strip location data anyway, and mogrify strips color profiles.
2020-07-10Merge branch 'develop' into issue/1790-updated-obanMark Felder
2020-07-10Merge branch 'proxy-range-and-chunk' into 'develop'feld
ReverseProxy: Streaming and disable encoding if Range Closes #1860 and #1823 See merge request pleroma/pleroma!2749
2020-07-10Credo line length complaintMark Felder
2020-07-10ReverseProxy: Streaming and disable encoding if Rangehref
Fixes #1823 Fixes #1860
2020-07-10ActivityPub: Don't rename a clashing nickname with the same ap id.lain
2020-07-10Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵lain
chat-federation-information
2020-07-10Merge branch 'admin-api-user-credentials-for-remote-users-fix' into 'develop'Haelwenn
Admin API: fix `GET /api/pleroma/admin/users/:nickname/credentials` returning 404 when getting the credentials of a remote user while `:instance, :limit_to_local_content` is set to `:unauthenticated` Closes admin-fe#107 and #1788 See merge request pleroma/pleroma!2554
2020-07-10Merge branch 'mix-tasks-improvement' into 'develop'lain
Mix tasks improvement See merge request pleroma/pleroma!2723
2020-07-10Merge branch 'develop' into 'admin-api-user-credentials-for-remote-users-fix'Haelwenn
# Conflicts: # CHANGELOG.md
2020-07-10Merge branch 'user-search-nickname-rank-boost' into 'develop'Haelwenn
Improved search results for localized nickname match See merge request pleroma/pleroma!2733
2020-07-09user: Add support for custom emojis in profile fieldsHaelwenn (lanodan) Monnier
2020-07-09Add AdminFE reports URL to report emailsMark Felder
2020-07-09cleap upAlexander Strizhakov
2020-07-09fix for info after tag/untag userAlexander Strizhakov
2020-07-09Use the Pleroma.Config aliasMark Felder
2020-07-09Merge branch 'develop' into fix/csp-for-captchaMark Felder
2020-07-09Merge branch '1723-token-fixes' into 'develop'lain
AccountController: Return scope in proper format. Closes #1723 See merge request pleroma/pleroma!2694
2020-07-09Merge branch 'features/favicons' into 'develop'lain
Add support for remote favicons See merge request pleroma/pleroma!2261
2020-07-09Merge branch '1925-muting-reblogs' into 'develop'Haelwenn
AccountController: Fix muting / unmuting reblogs. Closes #1925 See merge request pleroma/pleroma!2732
2020-07-09Admin API: fix `GET /api/pleroma/admin/users/:nickname/credentials` ↵eugenijm
returning 404 when getting the credentials of a remote user while `:instance, :limit_to_local_content` is set to `:unauthenticated`
2020-07-09Merge branch 'follow-pipeline' into 'develop'Haelwenn
Handle `Follow` activities with the pipeline See merge request pleroma/pleroma!2734
2020-07-09Merge branch 'bugfix/status-deletion' into 'develop'lain
#1920 fix activity deletion See merge request pleroma/pleroma!2721
2020-07-09load default config in mix tasksAlexander Strizhakov