Skip to content

Configuration ​

Publish the configuration to change more than the .env keys cover:

bash
php artisan vendor:publish --tag=mosparo-config
KeyEnvDefault
enabledMOSPARO_ENABLEDtrueDisabled, every check passes and nothing is rendered. See Disabling mosparo.
hostMOSPARO_HOSTThe mosparo installation, for every project: its origin, such as https://mosparo.example.com, without a path.
client_argumentsMOSPARO_TIMEOUT['timeout' => 10]Guzzle options for every request to mosparo, for every project. Add 'verify' => false for a local mosparo with a self-signed certificate.
cache.enabledMOSPARO_CACHEfalseWhether what is read from mosparo is cached. See Caching.
cache.storeMOSPARO_CACHE_STOREthe default store
cache.ttlMOSPARO_CACHE_TTL300Seconds an entry is kept.
defaultMOSPARO_PROJECTdefaultThe project used when none is named.
projects.default.uuidMOSPARO_UUIDThe default project's uuid.
projects.default.public_keyMOSPARO_PUBLIC_KEY
projects.default.private_keyMOSPARO_PRIVATE_KEYOnly ever used on the server.

Every project, the default one included, can also set:

Key
projects.*.hostIts own mosparo installation, instead of host.
projects.*.client_argumentsGuzzle options that replace those in client_arguments, option by option.
projects.*.cacheCache settings that replace those in cache, setting by setting.

See Several projects.