-
Notifications
You must be signed in to change notification settings - Fork 8
/
Caddyfile.dev
36 lines (30 loc) · 1.02 KB
/
Caddyfile.dev
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
# This assumes this project runs the webpack-dev-server on 127.0.0.1:3004 and
# that Kopano API via kapid is running on 127.0.0.1:8039.
0.0.0.0:8096 {
errors stderr
log stdout
tls self_signed
gzip
# Kopano Meet web app development via webpack-dev-server.
proxy /meet/ 127.0.0.1:3004 {
header_downstream Cache-Control "no-cache, max-age=0, public"
header_downstream Referrer-Policy origin
header_downstream Content-Security-Policy "object-src 'none'; script-src 'self' 'unsafe-inline'; base-uri 'none'; frame-ancestors 'self';"
}
status 404 /meet/service-worker.js
header /meet/service-worker.js {
Cache-Control "no-cache, no-store, must-revalidate"
Pragma "no-cache"
Expires "0"
}
proxy /sockjs-node 127.0.0.1:3004 {
websocket
}
proxy /static 127.0.0.1:3004
# Fake config API.
rewrite /api/config/v1/kopano/meet/config.json /config.json
# Kopano API kapid.
proxy /api/gc/ 127.0.0.1:8039 {
transparent
}
}