forked from DevOps/deploy.stack
feat(couchdb): 添加安全重写和Caddy代理配置
添加secure_rewrites配置以增强CouchDB安全性 新增Caddy代理配置文件,支持TLS和路径重写
This commit is contained in:
@@ -20,6 +20,7 @@ require_valid_user = true
|
||||
authentication_redirect = /_utils/session.html
|
||||
|
||||
[httpd]
|
||||
secure_rewrites = true
|
||||
# 基本认证领域
|
||||
WWW-Authenticate = Basic realm="couchdb"
|
||||
# 启用 CORS
|
||||
@@ -35,4 +36,7 @@ headers = accept, authorization, content-type, origin, referer
|
||||
# 允许的 HTTP 方法
|
||||
methods = GET, PUT, POST, HEAD, DELETE
|
||||
# CORS 预检请求缓存时间(秒)
|
||||
max_age = 3600
|
||||
max_age = 3600
|
||||
|
||||
; [daemons]
|
||||
; httpd = {chttpd, start_link, [http]}
|
||||
Reference in New Issue
Block a user