File tree Expand file tree Collapse file tree 9 files changed +30
-21
lines changed Expand file tree Collapse file tree 9 files changed +30
-21
lines changed Original file line number Diff line number Diff line change @@ -419,24 +419,24 @@ echo "MISP | Update CA certificates ..." && update_ca_certificates
419
419
420
420
echo " MISP | Apply minimum configuration directives ..." && init_minimum_config
421
421
422
- echo " MISP | Apply DB updates ..." && apply_updates
423
-
424
422
echo " MISP | Initialize configuration ..." && init_configuration
425
423
426
424
echo " MISP | Initialize workers ..." && init_workers
427
425
426
+ echo " MISP | Apply DB updates ..." && apply_updates
427
+
428
428
echo " MISP | Configure GPG key ..." && configure_gnupg
429
429
430
430
echo " MISP | Init default user and organization ..." && init_user
431
431
432
432
echo " MISP | Resolve critical issues ..." && apply_critical_fixes
433
433
434
+ echo " MISP | Update components ..." && update_components
435
+
434
436
echo " MISP | Resolve non-critical issues ..." && apply_optional_fixes
435
437
436
438
echo " MISP | Create sync servers ..." && create_sync_servers
437
439
438
- echo " MISP | Update components ..." && update_components
439
-
440
440
echo " MISP | Set Up OIDC ..." && set_up_oidc
441
441
442
442
echo " MISP | Set Up LDAP ..." && set_up_ldap
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-2048M}
41
41
export PHP_MAX_EXECUTION_TIME=${PHP_MAX_EXECUTION_TIME:- 300}
42
42
export PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE:- 50M}
43
43
export PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE:- 50M}
44
- export PHP_MAX_INPUT_TIME: ${PHP_MAX_INPUT_TIME:- 300}
44
+ export PHP_MAX_INPUT_TIME= ${PHP_MAX_INPUT_TIME:- 300}
45
45
46
46
# start supervisord using the main configuration file so we have a socket interface
47
47
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
Original file line number Diff line number Diff line change @@ -12,12 +12,18 @@ change_php_vars() {
12
12
for FILE in /etc/php/* /fpm/php.ini
13
13
do
14
14
[[ -e $FILE ]] || break
15
+ echo " Configure PHP | Setting 'memory_limit = ${PHP_MEMORY_LIMIT} '"
15
16
sed -i " s/memory_limit = .*/memory_limit = ${PHP_MEMORY_LIMIT} /" " $FILE "
17
+ echo " Configure PHP | Setting 'max_execution_time = ${PHP_MAX_EXECUTION_TIME} '"
16
18
sed -i " s/max_execution_time = .*/max_execution_time = ${PHP_MAX_EXECUTION_TIME} /" " $FILE "
19
+ echo " Configure PHP | Setting 'upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE} '"
17
20
sed -i " s/upload_max_filesize = .*/upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE} /" " $FILE "
21
+ echo " Configure PHP | Setting 'post_max_size = ${PHP_POST_MAX_SIZE} '"
18
22
sed -i " s/post_max_size = .*/post_max_size = ${PHP_POST_MAX_SIZE} /" " $FILE "
19
- sed -i " s/max_input_time = .*/max_input_time = ${PHP_MAX_INPUT_TIME} |" " $FILE "
23
+ echo " Configure PHP | Setting 'max_input_time = ${PHP_MAX_INPUT_TIME} '"
24
+ sed -i " s/max_input_time = .*/max_input_time = ${PHP_MAX_INPUT_TIME} /" " $FILE "
20
25
sed -i " s/session.save_handler = .*/session.save_handler = redis/" " $FILE "
26
+ echo " Configure PHP | Setting 'session.save_path = '$( echo $REDIS_HOST | grep -E ' ^\w+://' || echo tcp://$REDIS_HOST ) :6379?auth=${REDIS_PASSWORD} '"
21
27
sed -i " s|.*session.save_path = .*|session.save_path = '$( echo $REDIS_HOST | grep -E ' ^\w+://' || echo tcp://$REDIS_HOST ) :6379?auth=${REDIS_PASSWORD} '|" " $FILE "
22
28
sed -i " s/session.sid_length = .*/session.sid_length = 64/" " $FILE "
23
29
sed -i " s/session.use_strict_mode = .*/session.use_strict_mode = 1/" " $FILE "
Original file line number Diff line number Diff line change @@ -287,5 +287,8 @@ if [[ -x /custom/files/customize_misp.sh ]]; then
287
287
/custom/files/customize_misp.sh
288
288
fi
289
289
290
+ # Restart PHP workers
291
+ supervisorctl restart php-fpm
292
+
290
293
# Wait for it
291
294
wait " $master_pid "
Original file line number Diff line number Diff line change 80
80
"MISP.event_alert_republish_ban_threshold" : {
81
81
"default_value" : 120
82
82
},
83
- "Plugin.ZeroMQ_enable" : {
84
- "default_value" : false
85
- },
86
83
"Plugin.Enrichment_services_enable" : {
87
84
"default_value" : true
88
85
},
98
95
"Plugin.Cortex_services_enable" : {
99
96
"default_value" : false
100
97
},
101
- "Plugin.Workflow_enable" : {
102
- "default_value" : true
103
- },
104
98
"Security.advanced_authkeys" : {
105
99
"default_value" : true
106
100
},
Original file line number Diff line number Diff line change 12
12
"MISP.contact" : {
13
13
"default_value" : " ${SETTING_CONTACT}"
14
14
},
15
- "Plugin.ZeroMQ_redis_host" : {
16
- "default_value" : " ${REDIS_HOST}"
17
- },
18
- "Plugin.ZeroMQ_redis_port" : {
19
- "default_value" : " ${REDIS_PORT}"
20
- },
21
- "Plugin.ZeroMQ_redis_password" : {
22
- "default_value" : " ${REDIS_PASSWORD}"
23
- },
24
15
"Plugin.Enrichment_services_url" : {
25
16
"default_value" : " ${MISP_MODULES_FQDN}"
26
17
},
Original file line number Diff line number Diff line change 33
33
"MISP.menu_custom_right_link_html" : {
34
34
"default_value" : " "
35
35
},
36
+ "Plugin.ZeroMQ_enable" : {
37
+ "default_value" : false
38
+ },
36
39
"Security.rest_client_enable_arbitrary_urls" : {
37
40
"default_value" : false
38
41
},
Original file line number Diff line number Diff line change 11
11
"MISP.redis_password" : {
12
12
"default_value" : " ${REDIS_PASSWORD}"
13
13
},
14
+ "Plugin.ZeroMQ_redis_host" : {
15
+ "default_value" : " ${REDIS_HOST}"
16
+ },
17
+ "Plugin.ZeroMQ_redis_port" : {
18
+ "default_value" : " ${REDIS_PORT}"
19
+ },
20
+ "Plugin.ZeroMQ_redis_password" : {
21
+ "default_value" : " ${REDIS_PASSWORD}"
22
+ },
14
23
"GnuPG.binary" : {
15
24
"default_value" : " ${GPG_BINARY}"
16
25
},
Original file line number Diff line number Diff line change 21
21
},
22
22
"Plugin.Enrichment_hover_timeout" : {
23
23
"default_value" : 5
24
+ },
25
+ "Plugin.Workflow_enable" : {
26
+ "default_value" : true
24
27
}
25
28
}
You can’t perform that action at this time.
0 commit comments