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