/etc/swift/proxy-server.conf配置文件内容是什么
时间: 2023-09-26 14:07:58 浏览: 55
/etc/swift/proxy-server.conf是OpenStack Swift中代理服务器的配置文件,其中包含代理服务器的各种配置选项。以下是该文件的示例内容:
```
[DEFAULT]
bind_ip = 0.0.0.0
bind_port = 8080
workers = auto
user = swift
log_facility = LOG_LOCAL0
log_level = INFO
[pipeline:main]
pipeline = catch_errors cache tempauth proxy-server
[app:proxy-server]
use = egg:swift#proxy
account_autocreate = True
[filter:catch_errors]
use = egg:swift#catch_errors
[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211
[filter:tempauth]
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
```
其中,DEFAULT节是默认配置选项,包括绑定IP、端口、工作线程数、日志等级等;pipeline:main节定义了代理服务器的处理管道,包括错误捕获、缓存、认证和代理服务器本身;app:proxy-server节定义了代理服务器的应用程序,使用了egg:swift#proxy插件;filter:catch_errors节定义了错误捕获过滤器;filter:cache节定义了缓存过滤器,使用了memcache作为缓存后端;filter:tempauth节定义了认证过滤器,使用了tempauth作为认证后端。