Sidekiq用户界面不加载资产 – 404没有find

我有轨道4.1应用程序与生产sidekiq运行。 我已经使用nginx +独angular兽来部署它。 另外我已经挂载sidekiq UI如下,

mount Sidekiq::Web => '/sidekiq' 

但是自从最近几天我尝试访问sidekiq UI时,sidekiq的所有资产都返回了404,没有find。 但它工作得很好。 但不能find什么导致404。

这里是我的应用程序的设置nginx +独angular兽设置

 upstream sample_app { server unix:/tmp/sample_app.sock fail_timeout=0; } server { listen 80; server_name www.sample_app.com; root /home/deploy/applications/sample_app/current/public; # set expire to all assets location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ { expires max; } try_files $uri/index.html $uri @sample_app; location @sample_app { proxy_set_header X-Request-Start "t=${msec}"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://sample_app; } error_page 500 502 503 504 /500.html; error_page 404 413 /404.html; client_max_body_size 50M; keepalive_timeout 10; } 

经过调试,我可以通过添加以下行来解决它

 # set expire to all assets location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ { expires max; try_files $uri @sample_app; }