1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-baserow

Клонировать/Скачать
Caddyfile 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Bram Wiepjes Отправлено 30.04.2025 10:43 01a7159
{
on_demand_tls {
ask {$PRIVATE_BACKEND_URL:localhost:8000}/api/builder/domains/ask-public-domain-exists/
}
{$BASEROW_CADDY_GLOBAL_CONF}
}
{$BASEROW_CADDY_ADDRESSES} {
tls {
on_demand
}
@is_baserow_tool {
expression "{$BASEROW_PUBLIC_URL}".contains({http.request.host})
}
handle @is_baserow_tool {
handle /api/* {
reverse_proxy {$PRIVATE_BACKEND_URL:localhost:8000}
}
handle /ws/* {
reverse_proxy {$PRIVATE_BACKEND_URL:localhost:8000}
}
handle /mcp/* {
reverse_proxy {$PRIVATE_BACKEND_URL:localhost:8000}
}
handle_path /media/* {
@downloads {
query dl=*
}
header @downloads Content-disposition "attachment; filename={query.dl}"
# Allow to call head from public url to get size
header {
Access-Control-Allow-Origin {$BASEROW_PUBLIC_URL:http://localhost}
Access-Control-Allow-Methods "GET, HEAD, OPTIONS"
Access-Control-Allow-Headers "*"
Access-Control-Expose-Headers "Content-Length, Content-Type"
}
file_server {
root {$MEDIA_ROOT:/baserow/media/}
}
}
handle_path /static/* {
file_server {
root {$STATIC_ROOT:/baserow/static/}
}
}
}
reverse_proxy {$PRIVATE_WEB_FRONTEND_URL:localhost:3000}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-baserow.git
git@api.gitlife.ru:oschina-mirror/mirrors-baserow.git
oschina-mirror
mirrors-baserow
mirrors-baserow
develop