title: Why cannot access static files of grafana service?
body: <p>I launch Grafana using official docker following the docs <a href="http://docs.grafana.org/installation/behind_proxy/#examples-with-sub-path-ex-http-foo-bar-grafana" rel="nofollow noreferrer">running grafana behind proxy</a> and <a href="http://docs.grafana.org/installation/docker/" rel="nofollow noreferrer">installing grafana using docker</a>, with command:</p>
  
  <pre><code>docker run -itd -p 3000:3000 \
  --name=grafana \
  -v ~/grafana_storage:/var/lib/grafana \
  -e "GF_SERVER_DOMAIN=www.jijunxu.cn" \
  -e "GF_SERVER_ROOT_URL=https://www.jijunxu.cn/grafana/" \
  --rm grafana/grafana
  </code></pre>
  
  <p>and nginx.conf:</p>
  
  <pre><code>location /grafana/
  {
      proxy_pass http://localhost:3000/;
  }
  </code></pre>
  
  <p>but I got this page when accessing <a href="https://www.jijunxu.cn/grafana/" rel="nofollow noreferrer">https://www.jijunxu.cn/grafana/</a> saying:</p>
  
  <pre><code>If you're seeing this Grafana has failed to load its application files 
  
  1. This could be caused by your reverse proxy settings.
  
  2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath
  
  3. If you have a local dev build make sure you build frontend using: npm run dev, npm run watch, or npm run build
  
  4. Sometimes restarting grafana-server can help
  </code></pre>
  
  <p>and 404 on CSS and JS files. I have tried all those methods but it remains the same. So is there any problem with my nginx.conf or docker command?</p>