This guide provides a brief overview for installing Drone server behind the Caddy webserver. This is an example caddyfile proxy configuration:
drone.mycomopany.com {
gzip {
not /stream/
}
proxy / localhost:8000 {
websocket
transparent
}
}
You must disable gzip compression for streamed data otherwise the live updates won’t be instant:
drone.mycomopany.com {
+ gzip {
+ not /stream/
+ }
proxy / localhost:8000 {
websocket
transparent
}
}
You must configure the proxy to enable websocket upgrades:
drone.mycomopany.com {
gzip {
not /stream/
}
proxy / localhost:8000 {
+ websocket
transparent
}
}
You must configure the proxy to include X-Forwarded
headers using the transparent
directive:
drone.mycomopany.com {
gzip {
not /stream/
}
proxy / localhost:8000 {
websocket
+ transparent
}
}