b54378e4f2fd381521bc92d3a2236299d0f986fe
[ta/caas-registry.git] / ansible / roles / swift / templates / update / proxy-server.conf
1 {#
2 Copyright 2019 Nokia
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 #}
16 [DEFAULT]
17 bind_ip = 127.0.0.1
18 bind_port = 18091
19 workers = 4
20 user = swift
21
22 [pipeline:main]
23 pipeline = healthcheck cache tempauth proxy-server
24
25 [app:proxy-server]
26 use = egg:swift#proxy
27 allow_account_management = true
28 account_autocreate = true
29 require_proxy_protocol = true
30
31 [filter:cache]
32 use = egg:swift#memcache
33 memcache_servers =  {{ hostvars[groups.caas_master[0]]['networking']['infra_internal']['ip'] }}:11212
34
35 [filter:catch_errors]
36 use = egg:swift#catch_errors
37
38 [filter:healthcheck]
39 use = egg:swift#healthcheck
40
41 [filter:tempauth]
42 storage_url_scheme = https
43 use = egg:swift#tempauth
44 # user_<tenant>_<username> = <password> <privileges>
45 user_admin_admin = {{ swift_admin_pass }} .admin .reseller_admin
46 user_admin_registry = {{ swift_registry_pass }} .admin