| Denis Egorenko | ea3c81b | 2019-12-02 13:50:43 +0400 | [diff] [blame] | 1 | haproxy: |
| 2 | proxy: | ||||
| 3 | enabled: true | ||||
| 4 | userlist: | ||||
| 5 | sample_userlist: | ||||
| 6 | name: registry_users | ||||
| 7 | groups: | ||||
| 8 | - name: 'g1' | ||||
| 9 | - name: 'g2' | ||||
| 10 | users: | ||||
| 11 | - name: user1 | ||||
| 12 | password: r00tme | ||||
| 13 | groups: [ 'g1' ] | ||||
| 14 | - name: user2 | ||||
| 15 | password: rootme | ||||
| 16 | insecure_password: True | ||||
| 17 | listen: | ||||
| 18 | sample_service: | ||||
| 19 | acl: | ||||
| 20 | auth_reg: "http_auth(${haproxy:proxy:userlist:sample_userlist:name})" | ||||
| 21 | mode: http | ||||
| 22 | options: | ||||
| 23 | - forwardfor | ||||
| 24 | - httpclose | ||||
| 25 | - httplog | ||||
| 26 | balance: source | ||||
| 27 | http_request: | ||||
| 28 | - action: auth | ||||
| 29 | condition: 'if !auth_reg' | ||||
| 30 | binds: | ||||
| 31 | - address: 127.0.0.1 | ||||
| 32 | port: 8000 | ||||
| 33 | servers: | ||||
| 34 | - name: test1 | ||||
| 35 | host: localhost | ||||
| 36 | port: 15001 | ||||
| 37 | - name: test2 | ||||
| 38 | host: localhost | ||||
| 39 | port: 15001 | ||||
| 40 | |||||
| 41 | # For haproxy/meta/sensu.yml | ||||
| 42 | linux: | ||||
| 43 | network: | ||||
| 44 | fqdn: linux.ci.local | ||||