-
Notifications
You must be signed in to change notification settings - Fork 24
/
Caddyfile
52 lines (45 loc) · 1.12 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
{
log {
output file ./logs/access.log {
compress
}
level debug
}
}
# backend.example.com
backend.{$SITE_ADDRESS} {
# File server
handle_path /media* {
root * {system.wd}/media
file_server
}
# Django
reverse_proxy django:8000 {
# @sendfile header X-Sendfile *
# handle_response @sendfile {
# rewrite {http.reverse_proxy.header.X-Sendfile}
# encode zstd gzip
# file_server
# }
}
}
anime.{$SITE_ADDRESS} {
reverse_proxy anime:3000
}
# anime.example.com
#anime.{$SITE_ADDRESS} {
# # Svelte AnimeCore CSR
# root * {system.wd}/frontend/AnimeCore/build/
# encode gzip zstd
# templates
# try_files {path} /app.html
# file_server
#}
# user.example.com
#user.{$SITE_ADDRESS} {
# # Svelte AnimeCore SSR
# root * {system.wd}/frontend/User/build/
# encode gzip zstd
# try_files {path} /app.html
# file_server
#}