From e1e191cb8e598381cef42c35e0a548212971880b Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 11 Dec 2018 13:13:47 +0100 Subject: [PATCH] Publish the genealabs-laravel-caffeine config --- Changelog | 1 + config/genealabs-laravel-caffeine.php | 76 +++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 config/genealabs-laravel-caffeine.php diff --git a/Changelog b/Changelog index 3083c1105..3c5440c64 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-12-11 DariusIII + * Chg: Publish the genealabs-laravel-caffeine config * Chg: Update spatie/laravel-permission to version 2.28.2 2018-12-10 DariusIII * Chg: Remove usage of ImageHelper just to fetch full URL to tmdb images, use URL directly diff --git a/config/genealabs-laravel-caffeine.php b/config/genealabs-laravel-caffeine.php new file mode 100644 index 000000000..2953d1161 --- /dev/null +++ b/config/genealabs-laravel-caffeine.php @@ -0,0 +1,76 @@ + 300000, + + /* + |-------------------------------------------------------------------------- + | Domain + |-------------------------------------------------------------------------- + | + | You may optionally configure a separate domain that you are running + | Caffeine for Laravel on. This may be of interest if you have a + | monitoring service that queries other apps. Setting this to + | null will use the domain of the current application. + | + | Default: null (null|string) + | + */ + 'domain' => null, + + /* + |-------------------------------------------------------------------------- + | Drip Endpoint URL + |-------------------------------------------------------------------------- + | + | Sometimes you may wish to white-label your app and not expose the AJAX + | request URLs as belonging to this package. To achieve that you can + | rename the URL used for dripping caffeine into your application. + | + | Default: 'genealabs/laravel-caffeine/drip' (string) + | + */ + 'route' => 'genealabs/laravel-caffeine/drip', // Customizable end-point URL + + /* + |-------------------------------------------------------------------------- + | Checking for Lapsed Drips + |-------------------------------------------------------------------------- + | + | If the browser is put to sleep on (for example on mobil devices or + | laptops), it will still cause an error when trying to submit the + | form. To avoid this, we force-reload the form 2 minutes prior + | to session time-out or later. Setting this setting to 0 + | will disable this check if you don't want to use it. + | + | Default: 2000 (int) + | + */ + 'outdated-drip-check-interval' => 2000, + + /* + |-------------------------------------------------------------------------- + | Use Route Middleware + |-------------------------------------------------------------------------- + | + | Drips are enabled via route middleware instead of global middleware. + | + | Default: false (bool) + | + */ + 'use-route-middleware' => false, + +];