36 lines
608 B
Caddyfile
36 lines
608 B
Caddyfile
{
|
|
auto_https disable_redirects
|
|
}
|
|
|
|
https://{$LM_CADDY_HOST:apricot.lan}:5700 {
|
|
tls internal
|
|
|
|
log {
|
|
output file {$HOME}/.local/state/life-platform/access.log {
|
|
roll_size 10mb
|
|
roll_keep 2
|
|
}
|
|
format json
|
|
}
|
|
|
|
handle /api/* {
|
|
reverse_proxy localhost:3700
|
|
}
|
|
|
|
handle /socket.io/* {
|
|
reverse_proxy localhost:3700
|
|
}
|
|
|
|
handle /apps/events/* {
|
|
uri strip_prefix /apps/events
|
|
root * {$HOME}/.local/share/life-platform/apps/events/dist
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
|
|
handle {
|
|
root * {$HOME}/.local/share/life-platform/web/dist
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
}
|