mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Force SSL and Multi SSL (#456)
This commit is contained in:
3
resources/svg/force-ssl-disabled.svg
Normal file
3
resources/svg/force-ssl-disabled.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 374 B |
4
resources/svg/force-ssl-enabled.svg
Normal file
4
resources/svg/force-ssl-enabled.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#16a34a">
|
||||
<path stroke-linecap="round" stroke-linejoin="round"
|
||||
d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 365 B |
@ -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
|
||||
|
@ -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() }};
|
||||
|
Reference in New Issue
Block a user