-
Notifications
You must be signed in to change notification settings - Fork 0
/
h2o.conf
59 lines (55 loc) · 1.36 KB
/
h2o.conf
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
proxy.preserve-host: ON
hosts:
# api
"api.neec.ooo:80":
listen: &default_http
port: 80
paths:
"/":
redirect: https://api.neec.ooo/
"api.neec.ooo:443":
listen: &default_https
port: 443
ssl:
certificate-file: /etc/letsencrypt/live/neec.ooo/fullchain.pem
key-file: /etc/letsencrypt/live/neec.ooo/privkey.pem
paths:
"/":
proxy.reverse.url: http://kong-application:8000/
# admin
"admin.neec.ooo:80":
listen: *default_http
paths:
"/":
redirect: https://admin.neec.ooo/
"admin.neec.ooo:443":
listen: *default_https
paths:
"/":
proxy.reverse.url: http://dios-application:3000/
# static
"static.neec.ooo:80":
listen: *default_http
paths:
"/":
redirect: https://static.neec.ooo/
"static.neec.ooo:443":
listen: *default_https
header.add: "Access-Control-Allow-Methods: GET,OPTIONS"
header.add: "Access-Control-Allow-Headers: *"
# header.add: "Access-Control-Allow-Origin: https://neec.ooo"
header.add: "Access-Control-Allow-Origin: *"
paths:
"/":
file.dir: /public
# web server
"neec.ooo:80":
listen: *default_http
paths:
"/":
redirect: https://neec.ooo/
"neec.ooo:443":
listen: *default_https
paths:
"/":
proxy.reverse.url: http://web-application/