Restic-rest-server server gave HTTP reply to HTTPS client

I'm trying to get restic's rest-server running with Traefik.
I get http: server gave HTTP response to HTTPS client in any way I try to configure it, while it runs through traefik.

What can I do?