Http works finem Problem with https

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello,Dearz, I have a problem. Strapi has back (port 1337) and front (port 3000). I wanna change in prod requests http to https. For sure, I have Nginx. Ubuntu.
Set up Nginx:

upstream.conf
/etc/nginx/conf.d/

Strapi server

upstream strapi {
server 127.0.0.1:1337;
}
/etc/nginx/sites-available/default

server {
# Listen HTTP
listen 80;
server_name matryoshka.fm, www.matryoshka.fm;

    # Redirect HTTP to HTTPS
    return 301 https://$host$request_uri;

}

server {
# SSL configuration
#
listen 443 ssl;
listen [::]:443 ssl;

    ssl_certificate     /home/leadman/ssl/www_matryoshka_fm.crt;
    ssl_certificate_key /home/leadman/ssl/13677054.key;

    server_name matryoshka.fm, www.matryoshka.fm;

    # Proxy Config
    location / {
    proxy_pass http://localhost:1337;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

}

Already I’ve tried to make front in this config forward to 3000, and admin panel (/admin) on port 1337 and it works, front is working on domain name via https and back also. But THE PROBLEM IS:
Mixed Content: The page at ‘’ was loaded over HTTPS, but requested an insecure resource ‘’. This request has been blocked; the content must be served over HTTPS.