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

Merge pull request #709 from vjFaLk/wildcard-all-domains

Allow user to set single wildcard certificate for all domains
This commit is contained in:
Ameya Shenoy 2018-09-22 03:22:54 +05:30 committed by GitHub
commit 33555fa63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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