-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapps.yaml
88 lines (85 loc) · 2.17 KB
/
apps.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
authRequestRedirect: "http://www.static.com"
authRequestUpstream: "http://non.exis.tant"
authRequestCookie: "sso-cookie"
#log:
# format: '{"timestamp": "$time_iso8601","remote_addr":"$remote_addr","message":"[$status] $request_method $request_uri","method": "$request_method","status": $status,"sent_length":$body_bytes_sent,"duration_s":$request_time,"referrer":"$http_referer","user_agent":"$http_user_agent","level": "info","proto": "$server_protocol","url": "$request_uri"}'
# escape: json
letsEncrypt:
endpoint: https://pebble:14000/dir
services:
- name: static # serves a static site from fil
subdomains:
- name: www
enabled: 'true'
baseUrl: static.com
port: 80
origin:
type: local
root: "/etc/lurch/test/static/"
- name: remote # serves an upstream remote
subdomains:
- name: www
enabled: 'true'
baseUrl: remote.com
port: 80
origin:
type: remote
host: localhost
port: 80
headers:
Host: www.static.com
- name: static-advanced # serve static but remote on url path
subdomains:
- name: advanced
enabled: 'true'
baseUrl: static.com
port: 80
origin:
type: local
root: "/etc/lurch/test/static/"
fallbacks:
- "/index.html;"
errorPages:
'404':
file: "/404.html"
pathRules:
- type: prefix
path: "/api/"
stripPath: true
origin:
type: remote
host: localhost
port: 80
headers:
host: www.static.com
- name: sso
subdomains:
- name: www
enabled: true
baseUrl: sso.com
port: 80
enableSso: true
origin:
type: "remote"
host: localhost
port: 80
headers:
host: www.static.com
- name: tls
subdomains:
- name: www
enabled: true
baseUrl: tls.com
enableSsl: true
- name: le
enabled: true
baseUrl: tls.com
enableSsl: true
enableLetsEncrypt: true
origin:
type: "remote"
host: localhost
port: 80
headers:
host: www.static.com