Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ auth-*.json
users.csv
cache/

# Usage statistics data
data/

# Temporary files
tmp/
ui/dist/
Expand Down
4 changes: 4 additions & 0 deletions src/core/ProxyServerSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ const http = require("http");
const https = require("https");
const fs = require("fs");
const net = require("net");
const path = require("path");
const { URL } = require("url");

const LoggingService = require("../utils/LoggingService");
const AuthSource = require("../auth/AuthSource");
const BrowserManager = require("./BrowserManager");
const ConnectionRegistry = require("./ConnectionRegistry");
const RequestHandler = require("./RequestHandler");
const UsageStatsService = require("./UsageStatsService");
const ConfigLoader = require("../utils/ConfigLoader");
const WebRoutes = require("../routes/WebRoutes");

Expand All @@ -40,6 +42,7 @@ class ProxyServerSystem extends EventEmitter {

this.authSource = new AuthSource(this.logger);
this.browserManager = new BrowserManager(this.logger, this.config, this.authSource);
this.usageStatsService = new UsageStatsService(this.authSource, this.logger, path.join(process.cwd(), "data"));

// Create ConnectionRegistry with lightweight reconnect callback
// When WebSocket connection is lost but browser is still running,
Expand Down Expand Up @@ -351,6 +354,7 @@ class ProxyServerSystem extends EventEmitter {
app.use((req, res, next) => {
if (
req.path !== "/api/status" &&
req.path !== "/api/usage-stats" &&
req.path !== "/" &&
req.path !== "/favicon.ico" &&
req.path !== "/login" &&
Expand Down
2,674 changes: 1,488 additions & 1,186 deletions src/core/RequestHandler.js

Large diffs are not rendered by default.

Loading