forked from toeverything/AFFiNE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
39 lines (34 loc) · 796 Bytes
/
Caddyfile
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
:80 {
reverse_proxy /api/* keck:3001
@websockets {
path /collaboration/*
}
reverse_proxy @websockets keck:3000
reverse_proxy /* lisa:3001 {
header_up Host lisa:3001
}
}
http://lisa:3001 {
root /* ./dist
file_server {
precompressed br
}
encode {
zstd
gzip 9
}
@notStatic {
not path /*.css
not path /*.js
not path /*.png
not path /*.jpg
not path /*.svg
not path /*.ttf
not path /*.eot
not path /*.woff
not path /*.woff2
}
handle @notStatic {
try_files {path} /index.html
}
}