-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheforms.config.php.example
More file actions
43 lines (40 loc) · 1.52 KB
/
Copy patheforms.config.php.example
File metadata and controls
43 lines (40 loc) · 1.52 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
<?php
/**
* eForms drop-in configuration (example).
*
* Copy to: wp-content/eforms.config.php
*
* This file MUST return an array of overrides matching the config shape.
*/
if (!defined('ABSPATH')) {
return [];
}
// Worker/R2 composition only: inject these through the deployment environment.
// Never commit a real integration key or derive one from WordPress salts.
// define('EFORMS_UPLOAD_COMPOSITION', 'worker_r2_cloudflare');
// Must be a dedicated HTTPS origin, not the WordPress home origin.
// define('EFORMS_WORKER_URL', 'https://media.example.com');
// define('EFORMS_WORKER_ENVIRONMENT_ID', 'production');
// define('EFORMS_WORKER_ACTIVE_KEY_ID', 'key-2026-01');
// define('EFORMS_WORKER_ACTIVE_KEY_B64', (string) getenv('EFORMS_WORKER_ACTIVE_KEY_B64'));
// Optional standalone local lazy-preview composition. Upload acceptance remains
// local and does not depend on Imagick; preview failures retain the download.
// define('EFORMS_UPLOAD_COMPOSITION', 'local_imagick_preview');
// define('EFORMS_LOCAL_PREVIEW_CONCURRENCY', 1); // 1 by default; 2 only after load testing.
return [
// Default off. Enable only after the documented Chrome/Android and
// Safari/iPhone rollout checks pass for the fixed code-owned JPEG recipe.
'media' => [
'client_preparation' => 'off', // or 'opportunistic_jpeg'
],
'security' => [
'origin_mode' => 'hard',
],
'logging' => [
'mode' => 'minimal',
],
'declined_review' => [
'enable' => false,
'retention_days' => null,
],
];