Skip to content

Commit e0b3790

Browse files
update configuration
1 parent 7a175cc commit e0b3790

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/demos/utils/server/csp-check.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DEMO_ROOT = join(__dirname, '..', '..');
99
const REPORT_DIR = join(DEMO_ROOT, 'csp-reports');
1010
const SERVER_URL = process.env.CSP_SERVER_URL || 'http://localhost:8080';
1111
const FRAMEWORK = (process.env.CSP_FRAMEWORKS || 'jQuery').trim();
12-
const CONCURRENCY = parseInt(process.env.CSP_CONCURRENCY, 10) || 8;
12+
const CONCURRENCY = parseInt(process.env.CSP_CONCURRENCY, 10) || 5;
1313

1414
function findChrome() {
1515
const candidates = [
@@ -87,7 +87,7 @@ function visitPage(url) {
8787
'--virtual-time-budget=5000',
8888
'--window-size=100,100',
8989
url,
90-
], { timeout: 30000 }, () => resolve());
90+
], { timeout: 10000 }, () => resolve());
9191
child.on('error', (err) => {
9292
reject(new Error(`Failed to launch Chrome at "${CHROME_PATH}": ${err.message}`));
9393
});

apps/demos/utils/server/csp-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ const demoIndexHandler = (request, response) => {
379379

380380
const rateLimiter = rateLimit({
381381
windowMs: 60 * 1000,
382-
max: 2000,
382+
max: 5000,
383383
});
384384

385385
const app = express();

0 commit comments

Comments
 (0)