Files
laravel-plausible-proxy/config/plausible-proxy.php
T
mathiaspalmqvist 513ceb61a0
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
Support custom Plausible script path
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
2026-11-12 08:27:43 +01:00

20 lines
581 B
PHP

<?php
// 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'),
];