-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
32 lines (27 loc) · 816 Bytes
/
Caddyfile
File metadata and controls
32 lines (27 loc) · 816 Bytes
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
claytablet.online, www.claytablet.online {
redir https://dubtab.pro{uri}
}
dubtab.pro, www.dubtab.pro {
encode zstd gzip
# Раздача медиафайлов напрямую с диска (быстрее, чем через Python)
handle /api/files/* {
uri strip_prefix /api/files
root * /srv/media/media
file_server
}
# Проксирование API и WebSocket на бэкенд FastAPI
handle /api/* {
reverse_proxy backend:8000
}
# Раздача статики React для всех остальных запросов
handle {
root * /usr/share/caddy
try_files {path} /index.html
file_server {
precompressed gzip
}
}
}
gskinfo.ru {
reverse_proxy host.docker.internal:18503
}