build: add /wasm location block to bbb-html5.nginx

Guarantees that nginx will be the one serving the WASM binaries (static assets).

The types block is there to guarantee that the correct MIME type is advertised.

Moreoever, it's preferable that the WASM binaries are gzipped because they're
too large to ignore, so it's worth the server-side gzipping overhead.
The explicit gzip type declaration is there because only text/html assets are
compressed by default.
This commit is contained in:
prlanzarin 2021-10-14 03:58:51 +00:00
parent b677f805c1
commit 96254f7c89

View File

@ -18,6 +18,14 @@ location /html5client/fonts {
alias /usr/share/meteor/bundle/programs/web.browser/app/fonts;
}
location /html5client/wasm {
types {
application/wasm wasm;
}
gzip_types application/wasm;
alias /usr/share/meteor/bundle/programs/web.browser/app/wasm;
}
location ~ ^/html5client/ {
# proxy_pass http://127.0.0.1:4100; # use for development
proxy_pass http://poolhtml5servers; # use for production