Reduce Swift logging amount
[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 log_level = WARN
23
24 [pipeline:main]
25 pipeline = healthcheck cache tempauth proxy-server
26
27 [app:proxy-server]
28 use = egg:swift#proxy
29 allow_account_management = true
30 account_autocreate = true
31 node_timeout = 30
32 require_proxy_protocol = true
33
34 [filter:cache]
35 use = egg:swift#memcache
36 memcache_servers = {% for host in groups['caas_master'] %}{{ hostvars[host]['networking']['infra_internal']['ip'] }}:{{ caas.swift_memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
37 connect_timeout = 3
38 pool_timeout = 3
39 tries = 3
40 io_timeout = 3
41
42 [filter:catch_errors]
43 use = egg:swift#catch_errors
44
45 [filter:healthcheck]
46 use = egg:swift#healthcheck
47
48 [filter:tempauth]
49 storage_url_scheme = https
50 use = egg:swift#tempauth
51 # user_<tenant>_<username> = <password> <privileges>
52 user_admin_admin = {{ caas.swift_credential.password }} .admin .reseller_admin