guilieb.httpd
ansible-role-httpd
: 安装 HTTPd 服务器
此 Ansible 角色旨在在 RHEL/CentOS 上安装 Apache HTTPd HTTP 服务器。
角色变量
mod_headers
httpd_headers_xss_protection: "1; mode=block"
: 设置X-XSS-Protection
头部。httpd_headers_x_content_type_options: "nosniff"
: 设置X-Content-Type-Options
头部。httpd_headers_referer_policy: "strict-origin"
: 设置Referrer-Policy
头部。httpd_headers_csp: ""
: 设置Content-Security-Policy
头部。默认情况下未定义。httpd_headers_xframe_options: "SAMEORIGIN"
: 设置X-Frame-Options
头部。httpd_headers_feature_policy: ""
: 设置Feature-Policy
头部。默认情况下未定义。httpd_headers_hsts: "max-age=15552001; includeSubDomains;"
: 设置 HTTP 严格传输安全 头部。
mod_ssl
httpd_ssl_cipher_order: "on"
: 设置SSLHonorCipherOrder
选项。httpd_ssl_protocol
: 设置SSLProtocol
选项。httpd_ssl_cipher_suite
: 设置SSLCipherSuite
选项。httpd_ssl_compression: "off"
: 设置SSLCompression
选项。httpd_ssl_session_tickets: "off"
: 设置SSLSessionTickets
选项。
请参阅 HTTPd 关于 TLS 加密的文档,并查看 Mozilla SSL 配置生成器。
mod_security
httpd_security_server_tokens: "Prod"
: 设置ServerTokens
选项。httpd_security_signature: "Off"
: 设置ServerSignature
选项。httpd_security_secserver_signature: ""
: 设置SecServerSignature
,来自security2_module
。
安装
ansible-galaxy install guilieb.httpd
许可证
gpl-3.0
下载
101
拥有者
Software Engineer & Data Scientist @ MAIF