# WSS config in traefik

**URL:** https://community.traefik.io/t/wss-config-in-traefik/27341
**Category:** Traefik v3 (latest)
**Tags:** file
**Created:** [April 27, 2025, 11:26pm UTC](https://community.traefik.io/t/wss-config-in-traefik/27341 "2025-04-27T23:26:29Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![shakeneon](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shakeneon](https://community.traefik.io/u/shakeneon)
#### Post date: [April 28, 2025, 1:15pm UTC](https://community.traefik.io/t/wss-config-in-traefik/27341/3 "2025-04-28T13:15:38Z")

</div>

It is using this URL:

```auto
Mixed Content: The page at 'https://garage-pro2-shelly.home.mydomain.top/settings' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://garage-pro2-shelly.home.mydomain.top/rpc'. This request has been blocked; this endpoint must be available over WSS.
```

I edited my middleware to add wss to the end of X-Forwarded-Proto based on this post: [Websocket does not upgrade ws to wss](https://community.traefik.io/t/websocket-does-not-upgrade-ws-to-wss/12017)  
and also added Upgrade and Connection lines.

```auto
customRequestHeaders:
          X-Forwarded-Proto: https,wss
          Upgrade: WebSocket
          Connection: Upgrade
```

But those don't work.

---

_[View the full topic](https://community.traefik.io/t/wss-config-in-traefik/27341)._
