redirectionio.agent
Ansible redirectionio-agent 角色
redirection.io 是一个网页流量重定向管理工具。它为网站管理员、SEO机构和开发者提供了一系列工具,帮助分析HTTP错误、设置HTTP重定向并高效监控流量。
该角色用于安装 redirection.io 代理。支持基于 Debian 和 RHEL 的 Linux 发行版。
安装
只需运行以下命令:
ansible-galaxy install redirectionio.agent
角色变量
redirectionio_agent_instance_name
: 该实例的名称,以便在网页界面中进行跟踪
您还可以配置:
redirectionio_agent_enabled
(默认值:true
):在剧本运行后是否启用 redirection.io?redirectionio_user
(默认值redirectionio
):运行代理的用户redirectionio_group
(默认值redirectionio
):运行代理的用户组redirectionio_agent_listen
(默认值127.0.0.1:10301
):监听接口。可以使用/var/run/redirectionio.sock
或127.0.0.1:10301
redirectionio_agent_persist
(默认值true
):是否在磁盘上存储规则redirectionio_agent_datadir
(默认值/var/lib/redirectionio
):存放持久化规则的位置redirectionio_agent_cache
(默认值:true
):使用内存缓存加速代理匹配redirectionio_agent_log
(默认值:{}
):日志配置指令 - 详见 配置模板。redirectionio_agent_proxies
(默认值:{}
) - 详细信息见 配置参考。redirectionio_agent_project_keys
(默认值:[]
) - 详细信息见 配置参考。redirectionio_agent_logging
(默认值:-
) - 详细信息见 配置参考。redirectionio_agent_instance_test_mode
(默认值:-
) - 详细信息见 配置参考。redirectionio_agent_metrics_server
(默认值:[]
) - 详细信息见 配置参考。
示例剧本
- hosts: webservers
roles:
- { role: redirectionio.agent, become: true }
vars:
redirectionio_agent_instance_name: '魔法前端 #1'
依赖关系
该角色没有依赖关系。
测试
可以使用 测试说明 测试该角色。
许可
该角色根据 MIT 许可证条款提供。
关于项目
Install redirectionio-agent, a versatile http redirection agent and proxy designed to help your SEO
安装
ansible-galaxy install redirectionio.agent
许可证
mit
下载
423
拥有者
Log your website traffic, analyze it, and setup redirects and SEO improvements on the fly.