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