thelia/hsts-module

安装: 32

依赖: 0

建议者: 0

安全: 0

星星: 0

观察者: 7

分支: 2

公开问题: 1

类型:thelia-module

0.2.0 2022-11-20 17:24 UTC

This package is auto-updated.

Last update: 2024-08-29 05:12:48 UTC


README

为Thelia启用HTTP严格传输安全机制 更多信息: https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security

安装

手动安装

  • 将模块复制到 <thelia_root>/local/modules/ 目录,并确保模块名称为HSTS。
  • 在Thelia管理面板中激活它

Composer

将其添加到主thelia composer.json文件中

composer require thelia/hsts-module:~0.1.0

用法

前往 /admin/configuration/variables 配置变量

  • hsts_enable
  • hsts_include_sub_domains
  • hsts_max_age
  • hsts_preload