2021-10-19 23:04:34 +08:00
|
|
|
location @html5client {
|
2024-05-02 02:33:46 +08:00
|
|
|
proxy_pass http://127.0.0.1:4100;
|
2021-10-19 23:04:34 +08:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
}
|
|
|
|
|
2024-04-02 20:07:20 +08:00
|
|
|
location /html5client/__meteor__/dynamic-import/fetch {
|
|
|
|
proxy_cache revproxy;
|
|
|
|
proxy_cache_methods POST;
|
|
|
|
proxy_cache_key "$request_uri|$request_body";
|
|
|
|
proxy_cache_use_stale updating;
|
|
|
|
proxy_cache_valid 24h;
|
|
|
|
proxy_cache_lock on;
|
|
|
|
add_header X-Cached $upstream_cache_status;
|
|
|
|
|
2024-05-08 08:14:10 +08:00
|
|
|
proxy_pass http://127.0.0.1:4100;
|
2024-04-02 20:07:20 +08:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
}
|
|
|
|
|
2024-05-02 02:33:46 +08:00
|
|
|
#location /html5client/join {
|
|
|
|
# alias /usr/share/meteor/bundle/programs/web.browser;
|
|
|
|
#}
|
2024-03-22 03:41:32 +08:00
|
|
|
|
2021-08-13 18:53:18 +08:00
|
|
|
location /html5client/locales {
|
|
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/locales;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /html5client/compatibility {
|
2022-07-16 08:36:23 +08:00
|
|
|
gzip_static on;
|
2021-08-13 18:53:18 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-01-10 21:21:01 +08:00
|
|
|
location /html5client/files {
|
|
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/files;
|
|
|
|
}
|
|
|
|
|
2021-10-14 11:58:51 +08:00
|
|
|
location /html5client/wasm {
|
|
|
|
types {
|
|
|
|
application/wasm wasm;
|
|
|
|
}
|
2021-10-16 01:19:18 +08:00
|
|
|
gzip_static on;
|
2021-10-14 11:58:51 +08:00
|
|
|
alias /usr/share/meteor/bundle/programs/web.browser/app/wasm;
|
|
|
|
}
|
|
|
|
|
2021-10-19 23:04:34 +08:00
|
|
|
location /html5client {
|
2022-02-01 03:05:41 +08:00
|
|
|
gzip_static on;
|
2021-10-19 23:04:34 +08:00
|
|
|
alias /usr/share/meteor/bundle/programs/web.browser;
|
|
|
|
try_files $uri @html5client;
|
2021-08-13 18:53:18 +08:00
|
|
|
}
|
2023-02-22 02:17:32 +08:00
|
|
|
|
|
|
|
location /html5client/sockjs {
|
|
|
|
try_files $uri @html5client;
|
|
|
|
limit_conn ws_zone 3;
|
|
|
|
}
|