changed db variables in backend config
This commit is contained in:
parent
2f1375e671
commit
6ea9c9b770
2 changed files with 8 additions and 9 deletions
|
@ -33,7 +33,8 @@ lacre_relay: '127.0.0.1'
|
|||
lacre_port: '10028'
|
||||
lacre_enc_port: '25'
|
||||
lacre_starttls: 'no'
|
||||
lacre_db_enabled: 'no'
|
||||
lacre_db_enabled: 'yes'
|
||||
lacre_db_backend: 'mysql'
|
||||
lacre_db_name: 'gpgmw'
|
||||
lacre_db_host: 'localhost'
|
||||
lacre_db_username: 'user'
|
||||
|
|
|
@ -93,14 +93,12 @@ enc_port = {{ lacre_enc_port }}
|
|||
starttls = {{ lacre_starttls }}
|
||||
|
||||
[database]
|
||||
# uncomment the settings below if you want
|
||||
# to read keys from a gpg-mailgate-web database
|
||||
enabled = {{ lacre_db_enabled }}
|
||||
name = {{ lacre_db_name }}
|
||||
host = {{ lacre_db_host }}
|
||||
username = {{ lacre_db_username }}
|
||||
password = {{ lacre_db_password }}
|
||||
|
||||
{% if lacre_db_backend == 'sqlite' %}
|
||||
url = sqlite://{{ lacre_db_name }}
|
||||
{% endif %}
|
||||
{% if lacre_db_backend == 'mysql' %}
|
||||
url = url = mysql://{{ lacre_db_user }}:{{ lacre_db_password }}@{{ lacre_db_host }}/{{ lacre_db_name }}
|
||||
{% endif %}
|
||||
[enc_keymap]
|
||||
# You can find these by running the following command:
|
||||
# gpg --list-keys --keyid-format long user@example.com
|
||||
|
|
Loading…
Reference in a new issue