I'm encountering a series of issues on my TerraMaster NAS running TOS 6, which seem to arise when I access the NAS through a Zoraxy reverse proxy with an letsEncrypt certificate.
Any insights on resolving these issues would be highly appreciated.
Problem Summary:
When accessing the NAS via the Zoraxy reverse proxy, I see repeated errors in the console, including failed WebSocket connections and numerous 404 errors when attempting to load various resources. Here’s a breakdown of the primary errors:
WebSocket Connection Errors: Fails to connect to the WebSocket endpoint (wss://my-domain.../events/rpc/ws).
404 Not Found: Many resources, such as JavaScript chunks, images, and JSON files, return 404 errors when accessed via the proxy.
MIME Type Mismatch: Several scripts are blocked due to MIME type issues (text/plain instead of expected script type).
Service Worker Issues: Error registering a ServiceWorker due to Content Security Policy (CSP) restrictions, especially for scripts from Google’s CDN.
Uncaught Type Errors: Various JavaScript errors where properties are read from undefined variables.
Here are some examples of the errors:

- Restarted the NAS
- Ensured all TOS updates were installed
- Websocket Support is enabled in Zoraxy
- everything is working with IP
- Zoraxy is running on a mini PC in the same network , Other services (proxmox,portainer,...) work perfect with Zoraxy and letsEncrypt
Thank you for any help you can provide!
