I have deployed n8n in my docker swarm cluster as a docker stack using docker composse. I can access to this swarm cluster by VPN because its in isolated datacenter. I use Traeffik in docker swarm to inter connect the services and access from outside the cluster. The Traefik use port 80. I have n8n deployed with a local volume and constaint to one node, and if I wan to acces to it, I can see a lot of error in my browser like:
-GET http://NODE_IP:80/n8n-abkassets/index-sFuAwd8C.js net::ERR_ABORTED 404 (Not Found)
Or
-Refused to apply style from ‘http://NODE_IP:80/n8n-abkassets/index-GbijzjdD.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I’ve set the environment variables like this:
- N8N_PATH=n8n-abk
- N8N_HOST=localhost
- N8N_PORT=5678
- N8N_PROTOCOL=HTTP
n8n version: latest in dockerhub
Database (default: SQLite):SQLite
Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
Operating system:Ubuntu
How can I solve this error?
Thanks