Nginx Reverse Proxy Frontend-Loading Failure

Hey, I use Nginx (globally) as a reverse proxy and run hass as a docker container. I tried to follow the hass-instructions for Nginx
My target is to access hass via the internet via a subdomain:
**example.com/hassio**

The access in the local network via IP and Port works: **http://192.168.2.126:8123/**

If I call the example.com/hassio it’s just loading the blue pillar on the top. So I looked in the nginx error log and it connot be loaded the frontend (extraction):

2020/04/20 09:27:11 [error] 1917#1917: *11 open() "/usr/share/nginx/html/frontend_latest/hass-icons.31f02e18.js" failed (2: No such file or directory), client: 84.176.157.201, server: example.com, request: "GET /frontend_latest/hass-icons.31f02e18.js HTTP/2.0", host: "example.com", referrer: "https://example.com/hassio"

How can I link the right folder and to which one?

that’s specified in the url… If your url to Home assistant when accessing outside your network is ‘foo.com’ then use that.

Sry @petro, I don’t get your answer.

I don’t know if it is a good idea to post my page here, but: http://raspsascha.spdns.org/hassio

This link I put also in the configuration.yaml

i posted the same question in NPM addon, the answer is here:

TLDR : home assistant might not work right locating in \something root. Use a subdomain for a right installation, like hassio.yoursite.com

Thank you @Malaga82, finally I decided to use the Nameserver of hass.io because I’m afraid to crash all my stuff.

:+1:
Easiest way to do it.
If it’s just control few things, consider WireGuard or ZeroTier