使用 nginx 访问 cuttlefish.io 网络服务器时未加载资产

No asset loaded when accessing cuttlefish.io web server thru nginx

当尝试 运行 cuttlefish.io 在 nginx 后面时,资产(css、图像等)是 404 未找到。 localhost:3000 上的 Cuttlefish 服务器 运行s,这是我在 nginx 中的服务器配置:

server
{
    server_name my.cuttlefish;
    listen 443 ssl;
    ssl_certificate /etc/nginx/ssl/be-s2534-msl.cer;
    ssl_certificate_key /etc/nginx/ssl/be-s2534-msl.key;
    root /soft/wordpress/home/tupromail/cuttlefish-master/public;

    location /
    {
        proxy_pass http://localhost:3000;
    }

   location  ^~ /assets/
   {
        gzip_static on;
        expires max;
        add_header Cache-Control public;
    }

    try_files $uri/index.html $uri @app;

    location @app
    {
        proxy_pass http://app;
        #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        #proxy_set_header Host $http_host;
        proxy_redirect off;
    }

    client_max_body_size 1G;
    keepalive_timeout 10;
}

有什么东西 missing/wrong 阻止加载资产吗?

谢谢

资产文件应该在 nginx 服务器上的这个位置:

root /soft/wordpress/home/tupromail/cuttlefish-master/public/assets;