Url-prefix not working with reverse proxy

Hello,
I am using LibreTranslate 1.5.2 with docker and I wish to have an istance url like this: https://mydomain.tld/translate.
I set LT_URL_PREFIX: "translate" in my docker-compose.yml file and it works if I go to http://localhost:5000/translate.

This is the relevant code of my nginx configuration:

server {
  listen       443 ssl;
  server_name  mydomain.tld;
  access_log   /var/log/nginx/libretranslate.access.log  main;

  # SSL configuration


  location /translate {
    proxy_pass      http://libretranslate:5000/translate;
    #rewrite ^/translate(.*)$ $1 break;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }

}

When I go to https://mydomain.tld/translate I can see the main page of LibreTranslate without any style.
By inspecting network requests I realized that each static files point to the root path instead of “/translate” path.
I think url-prefix (or LT_URL_PREFIX) param is not considered for static files.

I also tried to comment out the rewrite url but without success.

How can I solve this issue?

Any ideas to solve my issue?

Did you manage to find a solution? I have the same issue.

Possibly related:

static asset are (usually) expected to be served via static/<url> (not <url>).

E.g. https://libretranslate.com/favicon.ico → 404