Force SSL and Multi SSL (#456)

This commit is contained in:
Saeed Vaziry
2025-02-01 01:33:04 +01:00
committed by GitHub
parent ea396786e4
commit 262c5e040d
14 changed files with 161 additions and 73 deletions

View File

@ -1,3 +1,3 @@
if ! sudo certbot certonly --force-renewal --nginx --noninteractive --agree-tos --cert-name {{ $domain }} -m {{ $email }} {{ $domains }} --verbose; then
if ! sudo certbot certonly --force-renewal --nginx --noninteractive --agree-tos --cert-name {{ $name }} -m {{ $email }} {{ $domains }} --verbose; then
echo 'VITO_SSH_ERROR' && exit 1
fi

View File

@ -33,8 +33,8 @@
@endif
@if ($site->activeSsl)
listen 443 ssl;
ssl_certificate {{ $site->activeSsl->getCertificatePath() }};
ssl_certificate_key {{ $site->activeSsl->getPkPath() }};
ssl_certificate {{ $site->activeSsl->certificate_path }};
ssl_certificate_key {{ $site->activeSsl->pk_path }};
@endif
server_name {{ $site->domain }} {{ $site->getAliasesString() }};