set bind protocol dynamically

This commit is contained in:
Robert Kaussow 2018-12-09 00:06:29 +01:00
parent 64b42a6c8f
commit 723ac4511e

View File

@ -65,7 +65,7 @@ ENABLE_HARD_LINE_BREAK = false
FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
[server]
PROTOCOL = {{ gitea_bind_protocol }}
PROTOCOL = {{ 'https' if gitea_tls_enabled else 'http' }}
DOMAIN = {{ gitea_listen_address }}
ROOT_URL = {{ gitea_listen_protocol }}://%(DOMAIN)s/
HTTP_ADDR = {{ gitea_bind_ip }}