Setup with Caddy

This guide provides a brief overview for installing Drone server behind the Caddy webserver. This is an example caddyfile proxy configuration:

drone.mycompany.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.mycompany.com {
+   gzip {
+       not /stream/
+   }
    proxy / localhost:8000 {
        websocket
        transparent
    }
}

You must configure the proxy to enable websocket upgrades:

drone.mycompany.com {
    gzip {
        not /stream/
    }
    proxy / localhost:8000 {
+       websocket
        transparent
    }
}

You must configure the proxy to include X-Forwarded headers using the transparent directive:

drone.mycompany.com {
    gzip {
        not /stream/
    }
    proxy / localhost:8000 {
        websocket
+       transparent
    }
}

Is there a mistake on this page? Please let us know or edit this page.