-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.example.yaml
54 lines (54 loc) · 1.6 KB
/
config.example.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
servers:
# TCP socket listener
- type: socket
listen: '0.0.0.0:80'
# HTTP/1 protocol handler
handler:
type: http1
# Router service
service:
type: router
routes:
- path: /api/
# Proxy service to upstream http server
service:
type: proxy
uri: http://localhost:3000/api/
- path: /
# File service for static files
service:
type: file
path: ./static
# TCP socket listener
- type: socket
listen: '0.0.0.0:443'
# TLS protocol handler
handler:
type: lazytls
# Default certificate and HTTP protocol handler
certificate: /etc/letsencrypt/live/fallback.com/fullchain.pem
key: /etc/letsencrypt/live/fallback.com/fullchain.pem
handler:
type: http
# File service
service:
type: file
path: ./static
sni:
- hostname: example.com
certificate: /etc/letsencrypt/live/example.com/fullchain.pem
key: /etc/letsencrypt/live/example.com/privkey.pem
# Tunnel (unencrypted)
handler:
type: tunnel
target: '192.168.1.2:8080'
- hostname: example2.com
certificate: /etc/letsencrypt/live/example2.com/fullchain.pem
key: /etc/letsencrypt/live/example2.com/privkey.pem
# Http handler
handler:
type: http
# Proxy to http service running on unix socket
service:
type: proxy
uri: 'unix://_/run/cockpit/wsinstance/http.sock'