Projekt

Allgemein

Profil

Redmine bitnami 2 0 3 1 » Historie » Version 1

Jeremias Keihsler, 11.01.2017 15:13

1 1 Jeremias Keihsler
h1. Install
2
3
h1. Config
4
5
h2. setup email
6
7
add following parameter to @/opt/redmine-2.0.3-1/apps/redmine/htdocs/config/configuration.yml@
8
9
<pre><code class="ruby">
10
# about line 83
11
# default configuration options for all environments
12
default:
13
  # Outgoing emails configuration (see examples above)
14
  email_delivery:
15
    delivery_method: :smtp
16
    smtp_settings:
17
 
18
      address: "mail.example.com"
19
      port: 25 #587
20
      domain: 'example.com'
21
      authentication: :plain
22
      user_name: "redmine@example.com"
23
      password: "secret"
24
      openssl_verify_mode: 'none'
25
      #enable_starttls_auto: true
26
</code></pre>
27
28
although somehow redundant add following information to the [SMTP] section in @/opt/redmine-2.0.3-1/properties.ini@
29
30
<pre><code># about line 31
31
[SMTP]
32
smtp_host=mail.example.com
33
smtp_port=587
34
smtp_user=redmine@example.com
35
smtp_password=secret
36
smtp_protocol=tls
37
</code></pre>
38
39
h2. setup log-rotating
40
41
The Bitnami-Stack does not preconfigure log-rotating for the @production.log@ located in @/opt/redmine-2.0.3-1/apps/redmine/htdocs/log@. Although you could use the standard Logrotate it's recommended (http://www.redmine.org/boards/2/topics/11836) to use the Ruby-functionality. Add following parameter to @/opt/redmine-2.0.3-1/apps/redmine/htdocs/config/environments/production.rb@ and restart the Bitnami-Stack.
42
43
According to http://www.redmine.org/issues/11603 you have to provide a file directly to @Logger.new@ instead of the sample in the @production.rb@.
44
45
<pre><code class="ruby">
46
# 7 log-files, 20MB each
47
config.logger = Logger.new('/opt/redmine-2.0.3-1/apps/redmine/htdocs/log/production.log', 7, 20971520)
48
config.logger.level = Logger::INFO
49
</code></pre>
50
51
<pre>
52
[root@redmine ~]# cd /opt/redmine-2.0.3-1/apps/redmine/htdocs/log/
53
[root@redmine log]# ll
54
total 1120
55
-rwxrwxr-x. 1 root   daemon      36 Jun 18  2012 delete.me
56
-rw-r--r--. 1 daemon daemon   12158 Jul  9 09:36 production.log
57
-rw-rw-r--. 1 root   daemon   30053 Jul  9 09:28 production.log.0
58
-rwxrwxr-x. 1 root   daemon 1093571 Jul  9 08:59 production.log.1
59
</pre>