83ddc621a8
Files are compressed on build, but gzip_static on isn't set on their nginx route - so original files are being served, uncompressed. This commit serves the previously compressed files instead (thus reducing initial transfer size by ~1 MB). Someone should look into whether serving compressed version of the rest of assets makes sense - it probably does. Still pending: fonts, locales, svgs, everything under resources, ...
43 lines
1.0 KiB
Nginx Configuration File
43 lines
1.0 KiB
Nginx Configuration File
location @html5client {
|
|
# proxy_pass http://127.0.0.1:4100; # use for development
|
|
proxy_pass http://poolhtml5servers; # use for production
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
}
|
|
|
|
location /html5client/locales {
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/locales;
|
|
}
|
|
|
|
location /html5client/compatibility {
|
|
gzip_static on;
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/compatibility;
|
|
}
|
|
|
|
location /html5client/resources {
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/resources;
|
|
}
|
|
|
|
location /html5client/svgs {
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/svgs;
|
|
}
|
|
|
|
location /html5client/fonts {
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/fonts;
|
|
}
|
|
|
|
location /html5client/wasm {
|
|
types {
|
|
application/wasm wasm;
|
|
}
|
|
gzip_static on;
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/wasm;
|
|
}
|
|
|
|
location /html5client {
|
|
gzip_static on;
|
|
alias /usr/share/meteor/bundle/programs/web.browser;
|
|
try_files $uri @html5client;
|
|
}
|