aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/application.ex
AgeCommit message (Collapse)Author
2020-08-05Move checks to application startupRoman Chvanikov
2020-07-15HTTP: Implement max request limitsrinpatch
2020-07-15Connection pool: implement logging and telemetry eventsrinpatch
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-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-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-12Config/Docs: Expand behaviour suggestions at runtimehref
2020-07-10Merge branch 'mix-tasks-improvement' into 'develop'lain
Mix tasks improvement See merge request pleroma/pleroma!2723
2020-07-09Use the Pleroma.Config aliasMark Felder
2020-07-08don't fully start pleroma in mix tasksAlexander Strizhakov
2020-06-23Merge branch 'issue/1798' into 'develop'lain
[#1798] fixed migration the settings to DB See merge request pleroma/pleroma!2655
2020-06-22added verify RUM settings before start appMaksim Pechnikov
2020-06-17Change references from "deleted_urls" to "banned_urls" as nothing is handled ↵Mark Felder
via media deletions anymore; all actions are manual operations by an admin to ban the url
2020-06-14fix invalidates media url'sMaksim Pechnikov
2020-05-12Startup: suggest updating OTP when the version is too low for gunrinpatch
I've seen quite a few people wonder what to do when presented with this error message.
2020-05-07Streamer reworkhref
2020-04-29Change Pleroma.CaptchaTest to be a regular module instead of GenServerEgor Kislitsyn
2020-04-01Merge branch 'gun' into 'develop'feld
Gun adapter Closes #945 See merge request pleroma/pleroma!1861
2020-03-30activities generation tasksAlexander Strizhakov
2020-03-12Merge branch 'develop' into gunAlexander Strizhakov
2020-03-12clean upAlexander Strizhakov
2020-03-11using Pleroma.Config instead of etsAlexander Strizhakov
2020-03-11merging release default config on app startAlexander Strizhakov
2020-03-04otp versionAlexander Strizhakov
2020-03-03hiding raise error logic to otp_version moduleAlexander Strizhakov
2020-03-03otp_version refactorAlexander Strizhakov
2020-03-03Merge branch 'develop' into gunAlexander Strizhakov
2020-03-02Bump copyright years of files changed after 2020-01-07Haelwenn (lanodan) Monnier
Done via the following command: git diff fcd5dd259a1700a045be902b43391b0d1bd58a5b --stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
2020-02-18adding gun adapterAlexander Strizhakov
2020-02-03Merge branch 'develop' into issue/1383Maksim Pechnikov
2020-01-28Warn if HTTPSecurityPlug is disabledEgor Kislitsyn
2020-01-22Merge branch 'develop' into issue/1383Maksim Pechnikov
2020-01-20Check for unapplied migrations on startuprinpatch
Closes #1328
2019-12-21Merge branch 'develop' into issue/1383Maksim Pechnikov
2019-12-10Merge branch 'develop' into feature/custom-runtime-modulesEgor Kislitsyn
2019-12-09Merge branch 'develop' into issue/1383Maksim Pechnikov
2019-12-09Set Logger level to :info in prodEgor Kislitsyn
2019-12-09Add Pleroma.Utils.compile_dir/1Egor Kislitsyn
2019-12-08HTML: Compile Scrubbers on bootrinpatch
This makes it possible to configure their behavior on OTP releases.
2019-12-08Merge branch 'develop' into issue/1383Maksim Pechnikov
2019-12-06Add a test for custom runtime modulesEgor Kislitsyn
2019-12-06Use Kernel.inspect/2 to print loaded custom modulesEgor Kislitsyn
2019-12-06Move runtime configuration from `:instance` to `:modules`Egor Kislitsyn
2019-12-05Fix credo warningEgor Kislitsyn
2019-12-05Add support for custom modulesEgor Kislitsyn
2019-12-04ChatChannel: Ignore messages that are too long.lain
2019-11-28Merge branch 'develop' into issue/1383Maksim Pechnikov
2019-11-27moved DigestEmail to Oban Periodic jobsMaksim Pechnikov
2019-11-27moved ActivityExpiration to Oban Periodic jobsMaksim Pechnikov
2019-11-27moved ScheduledActivity to Oban Periodic jobsMaksim Pechnikov