# Traefik, Authentik, Nextcloud and Collabora Office

**URL:** <https://help.nextcloud.com/t/traefik-authentik-nextcloud-and-collabora-office/240436>\
**Category:** 📄 Office\
**Tags:** nc32, traefik, turn, letsencrypt, webdav, talk-app, setup\_warning\
**Created:** [February 16, 2026, 4:05pm UTC](https://help.nextcloud.com/t/traefik-authentik-nextcloud-and-collabora-office/240436 "2026-02-16T16:05:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [February 16, 2026, 5:01pm UTC](https://help.nextcloud.com/t/traefik-authentik-nextcloud-and-collabora-office/240436/2 "2026-02-16T17:01:54Z")

</div>

> [@dnilgreb](#):
>
> ```auto
> Document loading failed
> 
> Failed to establish socket connection or socket connection closed unexpectedly.
> 
> ```

this happens because your proxy auth forward requests from CODE to Authentik, which brakes the WOPI integration. Please review [Collabora integration guide](https://help.nextcloud.com/t/collabora-integration-guide/151879) and pay attention at “communication triangle”

> [@dnilgreb](#):
>
> And I setup Nextcloud as an app with a Proxy Provider in Authentik.

I would not recommend proxy auth for NC (or at least you need extra work to bypass CODE requests). Authentik and NC both support #openidconnect which is intended for external IdP integration.

---

_[View the full topic](https://help.nextcloud.com/t/traefik-authentik-nextcloud-and-collabora-office/240436)._
