add var for postgres ssl_mode

This commit is contained in:
Robert Kaussow 2018-12-09 02:01:46 +01:00
parent 159e487fe5
commit 5ca37b7b44
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ gitea_disable_registration: true
gitea_postgres_enabled: False
gitea_postgres_service: postgresql.service
gitea_postgres_tls_enabled: False
# gitea_postgres_ssl_mode: disabled
gitea_postgres_server: postgres.example.com
gitea_postgres_port: 5432
gitea_postgres_superuser: postgres

View File

@ -92,7 +92,7 @@ HOST = {{ gitea_postgres_server }}:{{ gitea_postgres_port }}
NAME = {{ gitea_postgres_db.name }}
USER = {{ gitea_postgres_user.name }}
PASSWD = {{ gitea_postgres_user.password }}
SSL_MODE = {{ 'enabled' if gitea_postgres_tls_enabled else 'disable' }}
SSL_MODE = {{ gitea_postgres_ssl_mode | default('disabled') }}
{% endif %}
[indexer]