Mantis的一些设置纪要

- 管理员默认用密

administrator / root

- 添加用户时,不需要通过Email认证来设置密码

Update config_inc.php configuration file and include the following parameters: 

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

- SMTP设置

#编辑 config/config_inc.php,以腾讯企业邮为例: 

$g_smtp_host='smtp.exmail.qq.com';
$g_smtp_username='xxx';
$g_smtp_password='xxx';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_phpMailer_method =2;

- 定时邮件

# 一般方式
*/1* * * * * /usr/bin/php /data0/Projects/Supports/mantisbt/scripts/send_emails.php > /dev/null 2>&1

# Docker 方式
*/1* * * * * /usr/bin/docker exec om-php php /var/www/html/Supports/mantisbt/scripts/send_emails.php > /dev/null 2>&1

- config.inc.php 例子

<?php
$g_enable_email_notification = ON;
//$g_send_reset_password = OFF;
//$g_validate_email = OFF;
$g_check_mx_record = OFF;

$g_hostname               = 'mariadb';
$g_db_type                = 'mysqli';
$g_database_name          = 'db_mantis';
$g_db_username            = 'xxx';
$g_db_password            = 'xxx';

/**
 * Mail settings
 */
$g_smtp_host='smtp.exmail.qq.com';
$g_smtp_username='xxx';
$g_smtp_password='xxx';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_phpMailer_method =2;

$g_email_send_using_cronjob = ON;
$g_webmaster_email = "admin@xxx.com";
$g_from_email = "admin@xxx.com";
/**
 * Webmaster email address. This is shown publicly at the bottom of each page
 * and thus may be susceptible to being detected by spam email harvesters.
 * @global string $g_webmaster_email
 */
$g_webmaster_email = 'admin@xxx.com';

$g_from_name = 'OYM Task';
$g_email_is_html = ON;
$g_return_path_email = 'admin@xxx.com';


$g_default_timezone       = 'Asia/Hong_Kong';
$g_default_language       = 'chinese_simplified';
$g_form_security_validation  = OFF;

$g_user_threshold = MANAGER;
$g_create_project_threshold = MANAGER;
$g_delete_project_threshold = MANAGER;

$g_show_user_realname_threshold = ON;
$g_show_realname = ON;
$g_crypto_master_salt     = 'xxx';
$g_my_view_boxes = array(
    'assigned' => '10',
    'tested' => '20',
    'waittingfordeploy' => '30',
    'deployed' => '40',
    'unassigned' => '50',
    'reported' => '60',
    'resolved' => '15',
    'recent_mod' => '80',
    'monitored' => '90',
    'closed' => '25',
    'feedback' => '0',
    'verify' => '0',
    'my_comments' => '0'
);
$g_max_file_size = 20000000;  // 上传文件尺寸最大20M

// add time tracking
$g_time_tracking_enabled = ON;
$g_time_tracking_with_billing = ON;
$g_time_tracking_stopwatch = ON;

$g_path = 'https://xxx.com/';

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

bennybi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值