mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
fix cert alias regex
This commit is contained in:
parent
4ccddfe58d
commit
71babd685b
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def gather_autossl_directives(nginx_conf: Path):
|
||||||
f"Cannot get SSL cert for \"{''.join(domains)}\". Invalid domains."
|
f"Cannot get SSL cert for \"{''.join(domains)}\". Invalid domains."
|
||||||
)
|
)
|
||||||
|
|
||||||
if not re.match(r"^[a-zA-Z0-9-_]$", alias):
|
if not re.match(r"^[a-zA-Z0-9-_]+$", alias):
|
||||||
raise ValueError(f'Invalid cert alias "{alias}"')
|
raise ValueError(f'Invalid cert alias "{alias}"')
|
||||||
|
|
||||||
directives.append((domains, alias))
|
directives.append((domains, alias))
|
||||||
|
|
Loading…
Reference in a new issue