Redmine配置
/opt/redmine3.2.0/configuration.yml
email服务配置
这里配置给用户发送邮件提醒的email帐号
default:
# Outgoing emails configuration
# See the examples below and the Rails guide for more configuration options:
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
email_delivery:
# async_smtp表示异步发送邮件,否则会严重影响前端响应
delivery_method: :async_smtp
async_smtp_settings:
tls: false
address: "crpower.com"
port: 25
authentication: :login
domain: 'crpower.com'
user_name: 'username'
password: 'password'
openssl_verify_mode: 'none'
附件存储路径
如果不填写则缺省会是Redmine安装目录下的file子目录
attachments_storage_path:
/opt/redmine3.2.0/additional_environment.rb
配置日志,包括日志路径,轮转文件数和日志大小,以及日志级别
这里配置日志达到1M时自动截取,并保留最新的两个日志文件
config.logger = Logger.new('/opt/redmine-3.2.0/log/production.log', 2, 1000000)
config.logger.level = Logger::INFO
/opt/redmine3.2.0/puma.rb
puma是一个多线程的HTTP服务器,我们在前面步骤装了
这里需要配置线程数和进程数
只有设计成线程安全的程序才需要用多线程,如果不能确认线程安全,则线程数的最大和最小值都应设为1,Redmine跑了这么久没问题看起来是线程安全的
# 最少线程数和最大线程数
threads 8, 32
# 通常一个服务器有几个cpu就配置几个worker
workers 8