Hello
I have n8n installed with postgress backend in k8s kubernetes single node cluster but i have this problem.
Deployment is with variables
N8N_PROTOCOL= http
N8N_PORT=“5678”
N8N_PATH=“/n8n/”
VUE_APP_URL_BASE_API=testing-app.silasport.app/n8n/
N8N_PUBLIC_API_ENDPOINT=n8n/api
N8N_ENDPOINT_REST=n8n/rest
WEBHOOK_URL=n8n.io - Workflow Automation
And deployed to internet with letsencrypt by ingress
kind: Ingress
metadata:
namespace: n8n
name: n8n-ingress
labels:
name: n8n-ingress
annotations:
kubernetes.io/ingress.class: "public"
cert-manager.io/cluster-issuer: "lets-encrypt"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
nginx.ingress.kubernetes.io/server-snippets: |
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
}
spec:
tls:
- hosts:
- "testing-app.silasport.app"
secretName: messaging-tls
rules:
- host: "testing-app.silasport.app"
http:
paths:
- pathType: Prefix
path: "/n8n"
backend:
service:
name: n8n-service
port:
number: 5678
But editor not work. All off frontend assets are loaded, but no javacript and css inside.
n8n:1 Refused to apply style from 'https://testing-app.silasport.app/n8n/assets/index-Bo70cRA3.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
n8n/assets/polyfills-BN5TIqPj.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
n8n/assets/index-fCEqBD8K.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
n8n:1 Refused to apply style from 'https://testing-app.silasport.app/n8n/assets/index-Bo70cRA3.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
In n8n.io - Workflow Automation file is HTML code instead of javascript
In https://testing-app.silasport.app/n8n/rest/sentry.js is sentry javascript
I mean that all vuejs assets are deployed as HTML index .file.
Any gues how to solve it?