98baa3db1a70fce61e51b59672aef1534502c771
[ta/caas-registry.git] / ansible / roles / swift / templates / main / 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 = 18084
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 node_timeout = 30
30 require_proxy_protocol = true
31
32 [filter:cache]
33 use = egg:swift#memcache
34 memcache_servers = {% for host in groups['caas_master'] %}{{ hostvars[host]['networking']['infra_internal']['ip'] }}:{{ caas.swift_memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
35 connect_timeout = 3
36 pool_timeout = 3
37 tries = 3
38 io_timeout = 3
39
40 [filter:catch_errors]
41 use = egg:swift#catch_errors
42
43 [filter:healthcheck]
44 use = egg:swift#healthcheck
45
46 [filter:tempauth]
47 storage_url_scheme = https
48 use = egg:swift#tempauth
49 # user_<tenant>_<username> = <password> <privileges>
50 user_admin_admin = {{ swift_admin_pass }} .admin .reseller_admin
51 user_admin_registry = {{ swift_registry_pass }} .admin