4855a15126734b05980753880a1b523de870df6b
[ta/caas-registry.git] / ansible / roles / swift / templates / update / 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 = 18091
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 require_proxy_protocol = true
31
32 [filter:cache]
33 use = egg:swift#memcache
34 memcache_servers =  {{ hostvars[groups.caas_master[0]]['networking']['infra_internal']['ip'] }}:11212
35
36 [filter:catch_errors]
37 use = egg:swift#catch_errors
38
39 [filter:healthcheck]
40 use = egg:swift#healthcheck
41
42 [filter:tempauth]
43 storage_url_scheme = https
44 use = egg:swift#tempauth
45 # user_<tenant>_<username> = <password> <privileges>
46 user_admin_admin = {{ caas.swift_credential.password }} .admin .reseller_admin
47 user_admin_registry = {{ swift_registry_pass }} .admin