Optimize architecture: Nginx now proxies everything to Node; added static file support for all assets

This commit is contained in:
DeNNii
2026-01-16 18:24:04 +11:00
parent 3f10aacf66
commit 9069fa2123
2 changed files with 47 additions and 23 deletions

View File

@@ -38,11 +38,9 @@ class StressTestingTool {
requestBody: null,
thinkTime: 1000,
proxyUrl:
window.location.protocol === "file:" ||
window.location.hostname === "localhost" ||
window.location.hostname === "127.0.0.1"
? "http://localhost:3000"
: "/proxy",
window.location.protocol.startsWith('http')
? window.location.origin
: "http://localhost:3000",
// Crawler settings
crawlerEnabled: false,