diff --git a/.env.example b/.env.example index 872039f0cb..bbde8fdc3d 100644 --- a/.env.example +++ b/.env.example @@ -276,6 +276,11 @@ TRACKER_URL= # To read more about this feature, go to this page: https://docs.firefly-iii.org/support/telemetry SEND_TELEMETRY=false +# +# Firefly III supports webhooks. These are security sensitive and must be enabled manually first. +# +ALLOW_WEBHOOKS=false + # You can fine tune the start-up of a Docker container by editing these environment variables. # Use this at your own risk. Disabling certain checks and features may result in lost of inconsistent data. # However if you know what you're doing you can significantly speed up container start times. diff --git a/config/firefly.php b/config/firefly.php index e7451f6cc1..7791da39a1 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -85,13 +85,14 @@ use FireflyIII\User; */ return [ - 'configuration' => [ + 'configuration' => [ 'single_user_mode' => true, 'is_demo_site' => false, ], - 'feature_flags' => [ + 'feature_flags' => [ 'export' => true, 'telemetry' => true, + 'webhooks' => false, ], 'version' => '5.4.6', @@ -120,6 +121,7 @@ return [ 'cer_provider' => envNonEmpty('CER_PROVIDER', 'fixer'), 'update_endpoint' => 'https://version.firefly-iii.org/index.json', 'send_telemetry' => env('SEND_TELEMETRY', false), + 'allow_webhooks' => env('ALLOW_WEBHOOKS', false), 'telemetry_endpoint' => 'https://telemetry.firefly-iii.org', 'layout' => envNonEmpty('FIREFLY_III_LAYOUT', 'v1'), 'update_minimum_age' => 6, @@ -801,7 +803,7 @@ return [ ], ], // if you add fields to this array, dont forget to update the export routine (ExportDataGenerator). - 'journal_meta_fields' => [ + 'journal_meta_fields' => [ // sepa 'sepa_cc', 'sepa_ct_op', 'sepa_ct_id', 'sepa_db', 'sepa_country', 'sepa_ep',