File: example.yml

package info (click to toggle)
slt 0.0.git20140301-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 14
file content (29 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# bind to this address to accept new TLS connections
bind_addr: ":443"

frontends:
  # connections with SNI of "v1.example.com" are handled by this block,
  # they are proxied to port 4443 on localhost
  v1.example.com:
    backends:
      -
        addr: ":4443"

        # 1000 ms timeout connecting to this backend
        connect_timeout: 1000

  v2.example.com:
    # round robin between two backends
    backends:
      -
        addr: "192.168.0.2:443"
      -
        addr: "192.168.0.1:443"

  example.org:
    # terminate TLS traffic for example.org
    tls_crt: /etc/certs/example.org.pem
    tls_key: /etc/certs/example.org.key
    backends:
      -
        addr: ":4444"