2
author: Nick Barcet <nick.barcet@canonical.com>
6
1. Setup your site specific parameters in roundcube.yaml
8
a list of all settable parameter with description is available using
10
or listing config.yaml
12
2. Deployment with mysql and haproxy
14
>juju deploy --config roundcube.yaml roundcube
17
>juju add-relation mysql roundcube
18
>juju add-relation roundcube haproxy
21
3. Accessing your new roundcube site should be ready at
22
http://<haproxy-machine-addr>/. To find out the public address of haproxy,
23
look for it in the output of the 'juju status' command.
27
to enable https access to your site, you can set "do_https" to the value of the
28
https port you want to listen to (443 is the default for https). You will
29
also need to provide the paths to *existing* SSLCertificate (ssl_crt) and key
30
(ssl_key). This means that you will have to use juju scp to upload your certicates
31
*before* making the config changes and adding other units.
33
You can also use the default ssl snake oil certificates provided by the ssl-cert
35
# This config activates https on port 443
37
ssl_crt: /etc/ssl/certs/ssl-cert-snakeoil.pem
38
ssl_key: /etc/ssl/private/ssl-cert-snakeoil.key
40
If the certificate you provide is invalid, apache will fail to load.
41
If the paths you provide are invalid, the https site will no be activated.
42
juju debug-log should be your friend, go have a look.
44
The certificates should be uploaded to the first unit you start, a peer relation
45
between all units will ensure that they will be reused identically everywhere.