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:
parent
e66c9b6c37
commit
40bccb5482
@ -228,7 +228,8 @@ def use_wildcard_certificate(bench_path, ret):
|
|||||||
ssl_certificate = wildcard['ssl_certificate']
|
ssl_certificate = wildcard['ssl_certificate']
|
||||||
ssl_certificate_key = wildcard['ssl_certificate_key']
|
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:]
|
domain = domain[1:]
|
||||||
else:
|
else:
|
||||||
domain = '.' + domain
|
domain = '.' + domain
|
||||||
|
Loading…
Reference in New Issue
Block a user