Configuration : Mantis Bug Tracking

Aussadawut
1 min readJul 6, 2017

รวบรวม configuration ต่างๆสำหรับ mantisbt

ปกติ configuration ต่างๆของของ mantisbt จะอยู่ที่ mantisbt/config_defaults_inc.php แต่เราสามารถ override โดยไปกำหนดไว้ที่ file mantisbt/config/config_inc.php ได้เช่นกัน

#ไม่ต้องการ notify email กรณีทีมีการ create user password

โดย default ของ mantisbt เมื่อ administrator create user แล้วระบบจะ notify ไปยัง email ของ user คนนั้นเพื่อให้ทำการกำหนด password แต่ถ้าเราไม่ต้องการให้ notify ไปทาง email และอยากให้ administrator กำหนด password เริ่มต้นให้เองก็สามารถ set config file ที่ mantisbt/config/config_inc.php (เป็นการ override ค่าตัวแปรใน mantisbt/config_defaults_inc.php) โดยกำหนด configuration ดังนี้

$g_enable_email_notification = OFF;
$g_send_reset_password = OFF;
$g_validate_email = OFF;
$g_check_mx_record = OFF;

#แก้ปัญหา create issue บันทึกข้อมูลต่างๆได้เพียง 10 events

mantisbt มีการป้องกัน spam โดยกำหนดว่า user สามารถทำ event (create issue, update issue log) ต่างๆได้เพียง 10 event ต่อ การ login 1 ครั้ง แต่เนื่องจากในการใช้งานจริงๆ การ login 1 ครั้งเราต้องการทำมากกว่านั้น ก็สามารถ set config file ที่ mantisbt/config/config_inc.php (เป็นการ override ค่าตัวแปรใน mantisbt/config_defaults_inc.php) ดังนี้

$g_antispam_max_event_count = 50; // 0 for no limit.

#Upload max file size

1. etc/php/7.0/apache2/php.ini -> upload_max_filesize, post_max_size
2. nginx/sites-available/default -> client_max_body_size
3. mantisbt/config/config_inc.php -> $g_max_file_size

--

--