2021-08-06 19:27:17 +00:00
|
|
|
|
[DEFAULT]
|
|
|
|
|
|
bind_port = 8080
|
2021-08-30 11:13:31 +08:00
|
|
|
|
workers = 2
|
2021-08-06 19:27:17 +00:00
|
|
|
|
user = swift
|
2021-08-30 11:13:31 +08:00
|
|
|
|
swift_dir = /etc/swift
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
|
|
|
|
|
[pipeline:main]
|
2021-08-30 11:13:31 +08:00
|
|
|
|
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo versioned_writes proxy-logging proxy-server
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
|
|
|
|
|
[app:proxy-server]
|
|
|
|
|
|
use = egg:swift#proxy
|
2021-08-30 11:13:31 +08:00
|
|
|
|
account_autocreate = True
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
|
|
|
|
|
[filter:catch_errors]
|
|
|
|
|
|
use = egg:swift#catch_errors
|
|
|
|
|
|
|
2021-08-30 11:13:31 +08:00
|
|
|
|
[filter:gatekeeper]
|
|
|
|
|
|
use = egg:swift#gatekeeper
|
|
|
|
|
|
|
|
|
|
|
|
[filter:healthcheck]
|
|
|
|
|
|
use = egg:swift#healthcheck
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
|
|
|
|
|
[filter:proxy-logging]
|
|
|
|
|
|
use = egg:swift#proxy_logging
|
|
|
|
|
|
|
2021-08-30 11:13:31 +08:00
|
|
|
|
[filter:cache]
|
|
|
|
|
|
use = egg:swift#memcache
|
|
|
|
|
|
memcache_servers = controller:11211
|
|
|
|
|
|
|
|
|
|
|
|
[filter:container_sync]
|
|
|
|
|
|
use = egg:swift#container_sync
|
|
|
|
|
|
|
2021-08-06 19:27:17 +00:00
|
|
|
|
[filter:bulk]
|
|
|
|
|
|
use = egg:swift#bulk
|
|
|
|
|
|
|
2021-08-30 11:13:31 +08:00
|
|
|
|
[filter:ratelimit]
|
|
|
|
|
|
use = egg:swift#ratelimit
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
2021-08-30 11:13:31 +08:00
|
|
|
|
[filter:authtoken]
|
|
|
|
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
|
|
|
|
|
www_authenticate_uri = http://controller:5000
|
|
|
|
|
|
auth_url = http://controller:5000
|
|
|
|
|
|
memcached_servers = controller:11211
|
|
|
|
|
|
auth_type = password
|
|
|
|
|
|
project_domain_id = default
|
|
|
|
|
|
user_domain_id = default
|
|
|
|
|
|
project_name = service
|
|
|
|
|
|
username = swift
|
|
|
|
|
|
# 根据用户创建的keystoneswift用户,自行修改密码
|
|
|
|
|
|
password = swift
|
|
|
|
|
|
delay_auth_decision = True
|
|
|
|
|
|
|
|
|
|
|
|
[filter:keystoneauth]
|
|
|
|
|
|
use = egg:swift#keystoneauth
|
|
|
|
|
|
operator_roles = admin,user
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
|
|
|
|
|
[filter:container-quotas]
|
|
|
|
|
|
use = egg:swift#container_quotas
|
|
|
|
|
|
|
|
|
|
|
|
[filter:account-quotas]
|
|
|
|
|
|
use = egg:swift#account_quotas
|
|
|
|
|
|
|
2021-08-30 11:13:31 +08:00
|
|
|
|
[filter:slo]
|
|
|
|
|
|
use = egg:swift#slo
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
2021-08-30 11:13:31 +08:00
|
|
|
|
[filter:dlo]
|
|
|
|
|
|
use = egg:swift#dlo
|
2021-08-06 19:27:17 +00:00
|
|
|
|
|
|
|
|
|
|
[filter:versioned_writes]
|
|
|
|
|
|
use = egg:swift#versioned_writes
|