Route /thumbnail/* on files.hubris.network to Seafile Pro thumbnail-server (LXC 125:8081)

This commit is contained in:
Caddy on hubris
2026-05-12 18:57:57 +02:00
parent c1c161d1b8
commit f0a8835d8c

View File

@@ -184,22 +184,38 @@ files.hubris.network {
request_body {
max_size 10GB
}
reverse_proxy 192.168.8.185:80 {
header_up X-Forwarded-Proto https
header_up X-Forwarded-Host {host}
header_up Host {host}
# Seafile iOS Pro app (>=4.0) speaks the IETF Resumable Uploads draft;
# the bundled seafile-fileserver does not. Strip the negotiation headers
# so the client falls back to a normal multipart upload.
header_up -Upload-Draft-Interop-Version
header_up -Upload-Complete
header_up -Upload-Offset
header_up -Upload-Length
transport http {
dial_timeout 30s
read_timeout 1h
write_timeout 1h
# /thumbnail/* served by the Pro thumbnail-server (LXC 125 port 8081).
@thumb path /thumbnail/*
handle @thumb {
reverse_proxy 192.168.8.185:8081 {
header_up X-Forwarded-Proto https
header_up X-Forwarded-Host {host}
header_up Host {host}
transport http {
dial_timeout 30s
read_timeout 1h
write_timeout 1h
}
}
}
handle {
reverse_proxy 192.168.8.185:80 {
header_up X-Forwarded-Proto https
header_up X-Forwarded-Host {host}
header_up Host {host}
# Seafile iOS Pro app (>=4.0) speaks the IETF Resumable Uploads draft;
# the bundled seafile-fileserver does not. Strip the negotiation headers
# so the client falls back to a normal multipart upload.
header_up -Upload-Draft-Interop-Version
header_up -Upload-Complete
header_up -Upload-Offset
header_up -Upload-Length
transport http {
dial_timeout 30s
read_timeout 1h
write_timeout 1h
}
flush_interval -1
}
flush_interval -1
}
}