This commit is contained in:
Bozhidar 2024-06-14 18:13:49 +03:00
parent 5b6e4e1b98
commit 5fc729a263
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,8 @@ defaults:
certificates:
- domain: {{ $domain }}
solver:
subject_alternative_names:
- '*.{{ $domain }}'
name: http-file
adapter: local
root: {{ $domainPublic }}

View file

@ -74,6 +74,8 @@ IncludeOptional conf-enabled/*.conf
ServerName {{$virtualHost['domain']}}
ServerAlias www.{{$virtualHost['domain']}}
@if(!empty($virtualHost['domainAlias']))
ServerAlias {{$virtualHost['domainAlias']}}