承接 code711/updatetrutstedhostsfromsite 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

code711/updatetrutstedhostsfromsite

最新稳定版本:1.1.0

Composer 安装命令:

composer require code711/updatetrutstedhostsfromsite

包简介

TYPO3 Extension to automatically update the $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] setting based on the configured sites

README 文档

README

Latest Stable Version TYPO3 12 TYPO3 11 Total Downloads Monthly Downloads PHPSTAN:Level 9 build:passing

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.

统计信息

  • 总下载量: 1.59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固