一个基于Pyramid的代理应用,用于在多个Plone实例之间代理请求。
项目描述
简介
ftw.bridge.proxy 是一个小型的基于Pyramid的Web应用,用于在多个Plone实例之间代理请求。其目的是通过该代理路由来隔离Plone实例。这使得将Plone实例轻松移动到其他服务器变得简单。
维护模式
每个配置的客户端(Plone站点)可以在桥上切换到维护模式。当启用维护模式时,桥会对该客户端的每个请求返回HTTP 503(服务不可用)。
可以在桥的管理视图中(/manage)启用维护模式。
安装桥
安装Pyramid和 ftw.bridge.proxy,并在Pyramid .ini 配置文件中配置桥
[app:main] use = egg:ftw.bridge.proxy clients.intranet.aliases = dashboard clients.intranet.ip_addresses = 127.0.0.1 clients.intranet.internal_url = http://127.0.0.1:8080/intranet/ clients.intranet.public_url = http://intranet.com/ clients.otherapp.ip_addresses = 192.168.1.10 clients.otherapp.internal_url = http://192.168.1.10:8080/platform/ clients.otherapp.public_url = http://otherapp.intranet.com/ bridge.admin.username = admin bridge.admin.password = secret
安装Plone插件
为了与桥交互,有一个名为 ftw.bridge.client 的Plone插件包,提供用于验证来自桥的请求的PAS插件以及用于发送请求的工具。有关更多信息,请参阅 ftw.bridge.client 的readme。
链接
版权
本软件包版权由 4teamwork 所有。
ftw.bridge.proxy 根据 GNU通用公共许可证,版本2授权。
变更日志
1.1.1 (2012-05-09)
添加 MANIFEST.in 并包含所有资源。 [jone]
1.1 (2012-05-09)
更新readme(修复reStructuredText标记)。 [jone]
1.0 (2012-05-09)
初始实现 [jone]