-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathconfig.php
More file actions
104 lines (97 loc) · 4.91 KB
/
Copy pathconfig.php
File metadata and controls
104 lines (97 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/**
* =============================================================================
* LOCAL CONFIGURATION OVERRIDE INSTRUCTIONS
* =============================================================================
*
* This file (`config.php`) contains the default configuration settings.
* PLEASE DO NOT EDIT THIS FILE DIRECTLY for your local setup, as your
* changes will be overwritten when you update the project via Git.
*
* Instead, follow these steps to create local overrides:
*
* 1. CREATE A NEW FILE: In this same directory, create a file named:
* `config.local.php`
*
* 2. COPY BELOW CONFIGURATION + DEFINE OVERRIDES: Inside `config.local.php`
*
* =============================================================================
*/
define('BEANSTALK_CONSOLE_VERSION', '1.9');
$localConfigFile = __DIR__ . '/config.local.php';
if (file_exists($localConfigFile) && is_readable($localConfigFile) && basename(__FILE__) !== 'config.local.php') {
require $localConfigFile;
if (count($GLOBALS['config'], true) != 1 && count($GLOBALS['config'], true) < 22) {
die('Please update your config.local.php with all new options. You are missing some.');
}
if (is_array($GLOBALS['config']['servers'])) {
return;
}
}
/**
* =============================================================================
* LOCAL CONFIGURATION `config.local.php` CONTENTS BELOW
* =============================================================================
*/
$GLOBALS['config'] = array(
/**
* List of servers available for all users
*/
'servers' => array(/* 'Local Beanstalkd' => 'beanstalk://localhost:11300', ... */),
/**
* Saved samples jobs are kept in this file, must be writable
*/
'storage' => dirname(__FILE__) . DIRECTORY_SEPARATOR . 'storage.json',
/**
* Optional Basic Authentication
*/
'auth' => array(
'enabled' => false,
'username' => 'admin',
'password' => 'password',
),
/**
* Default UI settings (used when no cookie is present).
* These values will be overridden by user-specific selection in Settings screen and kept in cookies.
* Keys use a positive 'enableFeature' convention where applicable.
* 'true' means the feature is ON by default.
* 'false' means the feature is OFF by default.
*/
'settings' => array(
// Numeric settings
'tubePauseSeconds' => -1, // Default: -1 (uses beanstalkd default of 1 hour)
'autoRefreshTimeoutMs' => 500, // Default: 500ms interval for auto-refresh
'searchResultLimit' => 25, // Default: 25 results in search
// Boolean settings (true = enabled/checked by default)
'enableJsonDecode' => true, // Default: Job data IS json_decoded by default
'enableJobDataHighlight' => true, // Default: Job data highlighting IS enabled by default
'enableAutoRefreshLoad' => false, // Default: Auto-refresh IS disabled on page load
'enableUnserialization' => false, // Default: Job data IS NOT unserialized by default
'enableBase64Decode' => false, // Default: Job data IS NOT base64_decoded by default
),
/**
* Review batch settings.
*/
'review' => array(
// Enables the review batch UI and actions. Set false to disable this feature entirely.
'enabled' => false,
// Number of jobs processed per AJAX chunk while preparing reviews and while running chunked return/delete operations.
'chunkSize' => 200,
// Number of characters shown in the review table body preview before truncation.
'bodyPreviewLength' => 100,
// Allow preparing ready jobs only when stats-tube reports no watchers/waiters for the source tube.
'allowReadyWhenUnwatched' => true,
// Allow preparing delayed jobs only when stats-tube reports no watchers/waiters for the source tube.
'allowDelayedWhenUnwatched' => true,
// Dangerous: allow ready job review even when workers may be watching. Requires explicit checkbox in the UI.
'allowUnsafeReadyOverride' => false,
// Dangerous: allow delayed job review even when workers may be watching. Requires explicit checkbox in the UI.
'allowUnsafeDelayedOverride' => false,
// If true, the UI never offers body snapshot capture and the backend refuses to create body snapshots.
// Body snapshots preserve review-time payloads, but can create large local files and impact review-page/body-load performance.
'neverIncludeBodySnapshot' => false,
// Directory for review metadata files. null means dirname($config['storage']) . '/review-batches'.
// This stores audit JSONL, materialized current summaries, operation metadata, and optional body snapshot JSONL files.
'storagePath' => null,
),
);