CzBiX / qb-web

A qBittorrent Web UI, write in TypeScript+Vue.
GNU General Public License v3.0
1.69k stars 137 forks source link

[Wiki] Multi webui configuration for nginx is broken because of default mime-types #148

Closed namniav closed 1 year ago

namniav commented 1 year ago

When using the example from https://github.com/CzBiX/qb-web/wiki/Running-multi-WebUI-at-the-same-time#nginx, the Web UI is broken because all script files are served with header Content-Type: text/plain. Add include mime.types; to let nginx auto-detects mime-types.

  location / {
    include mime.types;
    root /var/www/qb-web/public/;
  }