我正在尝试在couchdb 2.2的单服务器部署上设置一个连续复制作业,从本地数据库到本地数据库,而不传播用户的密码。
我可以通过在
_replicator
此表格的数据库:
{
"_id": "my-replication-job-id",
"_rev": "1-5dd6ea5ad8479bb30f84dac02aaba59c",
"source": "http://username:password@localhost:5984/source_db_name",
"target": "http://username:password@localhost:5984/target_db_name",
"continuous": true,
"owner": "user-that-created-this-job"
}
是否有任何方法可以做到这一点,而不在
source
和
target
复制作业的字段?这都是在同一台服务器上运行的…数据库和复制作业本身。
我看到沙发2.2增加了
ability for replication jobs to maintain their authenticated state using a cookie
但我的理解是,为了启动与源数据库和目标数据库的身份验证会话,仍然需要用户名和密码。
我应该补充一下
require_valid_user = true
已配置。
事先谢谢。