Urbackup 2.5.x websocket config

is there any clear documentation on how to setup server / client websocket connection?

I have read through some of the testing posts, but im finding myself a little confused on how to get it connecting.

I am currently behind a proxy and have tried:

urbackup://backups.domain.com:80

&

urbackup://backups.domain.com:443

on the client side and it says connected to the internet server but doesnt actually route to the urbackup server.

use

ws://backups.domain.com/socket instead of urbackup://backups.domain.com:80

and

wss://backups.domain.com/socket instead of urbackup://backups.domain.com:443

Using urbackup:// means it uses the “UrBackup” protocol directly and not HTTP.

If it doesn’t work enabling client debug logging and looking at the log file should help.

Depending on what you mean by proxy it might not work. The HTTP proxy isn’t used currently. (It might work if you mean using Treafik as proxy on the server)

Yes on the Traefik proxy part.
Im getting an HTTP/1.1 500 Internal Server Error, which im assuming has to do with Traefik.

am I supposed to send traffic to:

http://internalip:55415

or
wss://internalip:55415

@uroni

Got it to connect finally, but found an issue.

after connecting properly, the windows client reverts my config to urbackup://backups.f******.com and the logs say failed to connect to said server.

Nevermind, I think I figured it out. I had to update the config on the server portal. Doesnt seem to be reverting now.

For everyone like me that came across this post trying to do the same thing, I just wanted to show what worked for me.

The documentation says that the port for internet clients is 55415 but if you are using websocket (with a proxy for example) you need to use the same port as the web interface (In my case 55414)

So here is my setup:

admin interface: https://backup.mydomain.com/
server url for internet clients: wss://backup.mydomain.com/

traefik config:

---
http:
  routers:
    urbackup:
      entryPoints:
      - https
      rule: Host(`backup.mydomain.com`)
      service: urbackup
      middlewares:
      - urbackup-headers
      tls:
        certResolver: infomaniak
        options: tlsoptions@file
        domains:
        - main: mydomain.com
          sans:
          - "*.mydomain.com"
  middlewares:
    urbackup-headers:
      headers:
        customResponseHeaders:
          X-Forwarded-Proto: https
  services:
    urbackup:
      loadBalancer:
        passHostHeader: true
        servers:
        - url: http://192.168.1.10:55414/