2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

Allow user to set single wildcard certificate for all domains

This commit is contained in:
Valmik Jangla 2018-08-21 00:25:59 -07:00
parent e66c9b6c37
commit 40bccb5482

View File

@ -228,7 +228,8 @@ def use_wildcard_certificate(bench_path, ret):
ssl_certificate = wildcard['ssl_certificate']
ssl_certificate_key = wildcard['ssl_certificate_key']
if domain.startswith('*.'):
# If domain is set as "*" all domains will be included
if domain.startswith('*'):
domain = domain[1:]
else:
domain = '.' + domain