WSS config in traefik

It is using this URL:

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
and also added Upgrade and Connection lines.

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

But those don't work.