Support custom Plausible script path
dependabot-auto-merge / dependabot (pull_request_target) Skipped
Fix PHP code style issues / php-code-styling (push) Successful in 6s
PHPStan / phpstan (push) Successful in 2m32s
run-tests / P8.3 - L11.* - prefer-lowest - ubuntu-latest (push) Failing after 34s
run-tests / P8.4 - L11.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 2s
dependabot-auto-merge / dependabot (pull_request_target) Skipped
Fix PHP code style issues / php-code-styling (push) Successful in 6s
PHPStan / phpstan (push) Successful in 2m32s
run-tests / P8.3 - L11.* - prefer-lowest - ubuntu-latest (push) Failing after 34s
run-tests / P8.4 - L11.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 2s
Add a PLAUSIBLE_SCRIPT config option so site-specific scripts (js/pa-XXXXX.js) and legacy script extensions can be proxied. The script is still served locally from /js/script.js and the cache key is derived from the script URL so changing the script takes effect immediately. Closes #14
This commit is contained in:
4 files changed
+94
-27
No files matched your search
@@ -3,5 +3,17 @@
|
||||
// Config for Laravel Plausible Proxy
|
||||
|
||||
return [
|
||||
/*
|
||||
* The Plausible instance to proxy, e.g. https://plausible.io or your
|
||||
* self-hosted instance.
|
||||
*/
|
||||
'domain' => env('PLAUSIBLE_DOMAIN', 'https://plausible.io'),
|
||||
|
||||
/*
|
||||
* Path of the script to fetch from the Plausible instance. Use this for
|
||||
* site-specific scripts (e.g. js/pa-12345ABCDE.js) or legacy script
|
||||
* extensions (e.g. js/script.outbound-links.js). The script is always
|
||||
* served locally from /js/script.js.
|
||||
*/
|
||||
'script' => env('PLAUSIBLE_SCRIPT', 'js/script.js'),
|
||||
];
|
||||
Reference in new issue
Block a user