feat(cli) : add certificate for domains WIP

This commit is contained in:
mrflos 2022-09-06 17:10:16 +03:00
parent 8a62a447a8
commit 521f5b6be8
2 changed files with 25 additions and 2 deletions

View file

@ -18,7 +18,9 @@ server {
server_name www.<?=$this->e($domain)?>;
include h5bp/tls/ssl_engine.conf;
include h5bp/tls/certificate_files.conf;
ssl_certificate /etc/letsencrypt/live/<?=$this->e($domain)?>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<?=$this->e($domain)?>/key.pem;
ssl_trusted_certificate /etc/letsencrypt/live/<?=$this->e($domain)?>/ca.pem;
include h5bp/tls/policy_strict.conf;
return 301 $scheme://<?=$this->e($domain)?>$request_uri;
@ -33,7 +35,13 @@ server {
server_name <?=$this->e($domain)?>;
include h5bp/tls/ssl_engine.conf;
<?php if ($subDomain) : ?>
include h5bp/tls/certificate_files.conf;
<?php else : ?>
ssl_certificate /etc/letsencrypt/live/<?=$this->e($domain)?>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<?=$this->e($domain)?>/key.pem;
ssl_trusted_certificate /etc/letsencrypt/live/<?=$this->e($domain)?>/ca.pem;
<?php endif ?>
include h5bp/tls/policy_strict.conf;
# Path for static files