mirror of
https://github.com/makeplane/plane.git
synced 2025-12-24 23:59:40 +01:00
* chore: add static files collection and update settings for static files support * chore: add WhiteNoise middleware for static file handling * chore(deps): upgrade WhiteNoise to version 6.11.0 and add static file reverse proxy in Caddyfile
38 lines
719 B
Caddyfile
38 lines
719 B
Caddyfile
(plane_proxy) {
|
|
request_body {
|
|
max_size {$FILE_SIZE_LIMIT}
|
|
}
|
|
|
|
redir /spaces /spaces/ permanent
|
|
reverse_proxy /spaces/* space:3000
|
|
|
|
redir /god-mode /god-mode/ permanent
|
|
reverse_proxy /god-mode/* admin:3000
|
|
|
|
reverse_proxy /live/* live:3000
|
|
|
|
reverse_proxy /api/* api:8000
|
|
|
|
reverse_proxy /auth/* api:8000
|
|
|
|
reverse_proxy /static/* api:8000
|
|
|
|
reverse_proxy /{$BUCKET_NAME}/* plane-minio:9000
|
|
|
|
reverse_proxy /* web:3000
|
|
}
|
|
|
|
{
|
|
{$CERT_EMAIL}
|
|
acme_ca {$CERT_ACME_CA:https://acme-v02.api.letsencrypt.org/directory}
|
|
{$CERT_ACME_DNS}
|
|
servers {
|
|
max_header_size 25MB
|
|
client_ip_headers X-Forwarded-For X-Real-IP
|
|
trusted_proxies static {$TRUSTED_PROXIES:0.0.0.0/0}
|
|
}
|
|
}
|
|
|
|
{$SITE_ADDRESS} {
|
|
import plane_proxy
|
|
} |