Support custom host

This commit is contained in:
DullJZ
2025-10-04 15:19:54 +08:00
parent 34a905defd
commit 4b44dc1a1b
6 changed files with 46 additions and 19 deletions
+1
View File
@@ -65,6 +65,7 @@ type S3APIConfig struct {
VirtualHost bool `yaml:"virtual_host"` // 是否使用虚拟主机模式
ProxyMode bool `yaml:"proxy_mode"` // 是否使用代理模式(而非重定向)
AuthRequired bool `yaml:"auth_required"` // 是否需要认证
Host string `yaml:"host"` // 用于签名验证的Host(为空则使用请求的Host)
}
// DatabaseConfig 数据库配置