Download the PHP package code711/updatetrutstedhostsfromsite without Composer
On this page you can find all versions of the php package code711/updatetrutstedhostsfromsite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download code711/updatetrutstedhostsfromsite
More information about code711/updatetrutstedhostsfromsite
Files in code711/updatetrutstedhostsfromsite
Package updatetrutstedhostsfromsite
Short Description TYPO3 Extension to automatically update the $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] setting based on the configured sites
License MIT
Informations about the package updatetrutstedhostsfromsite
TYPO3 Site config - automatic updates to $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern']
This TYPO3 extension will automatically update the $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] variable when changes to the Site Configurations are made, reflecting the used domains in the system.
This is achieved with the Extension EXT:siteconfigurationevents which provides PSR-14 events when changing the Site config in the backend.
Additionally a command for CLI is available to update the trusted host pattern from the shell or during CI/CD or as a scheduler task via cron.
./vendor/bin/typo3 code711:updatetrustedhostfromsites -h ✔ 10118 16:52:23 Description: update SYS/trustedHostsPattern based on the site configuration Usage: code711:updatetrustedhostfromsites Options: -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Calling the command with -v or --verbose will print the new value to the console additionaly to setting it in the config.
Installation
composer req code711/updatetrustedhostfromsites
Configuration
to date no configuration options are available
Remarks
This extension WILL yield to the TYPO3_CONTEXT (or other similar) Environment Variable if Variations in the Site Configs are set.
A . will not be escaped (as it should be). This is a limitation as the escape character \ would be escaped again by the exporter somehow.
All versions of updatetrutstedhostsfromsite with dependencies
typo3/cms-core Version 11.5.*||^12.0
code711/siteconfigurationevents Version ^1.0