System Information
- Strapi Version: 3.5.4
- OS: Docker
- Database: MySQL
- Proxy: Ngninx
I started porting my how application (including strapi) to docker, is developed everything locally und it worked, so I started deploying to the live server. Somehow my admin-dashboard is served as “script” and i get the following error in the console “Uncaught SyntaxError: expected expression, got ‘<’” as the page stays blank. What could be the problem here. The only thing changes from my local instance to the live instance is that im using https / ssl encryption.
This is the part of my nginx configuration:
location /api/ {
proxy_pass http://strapi/;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $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;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Content-Type-Options "nosniff";
proxy_pass_request_headers on; }
Also as a proxy I’m using nginx. Hope anyone can help me or give me a hint in the right direction, thank you.