changed db variables in backend config

This commit is contained in:
muppeth 2022-05-13 00:51:21 +02:00
parent 2f1375e671
commit 6ea9c9b770
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
2 changed files with 8 additions and 9 deletions

View File

@ -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'

View File

@ -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