|
|
|
@ -13,7 +13,16 @@
|
|
|
|
|
<span class="hljs-section">sudo</span> <span class="hljs-attribute">-u</span> {{ data.user }} <span class="hljs-section">sh</span> <span class="hljs-attribute">-c</span> "<span class="hljs-section">mkdir</span> <span class="hljs-attribute">-p</span> /var/www/_letsencrypt"
|
|
|
|
|
|
|
|
|
|
<span class="hljs-comment"># <strong>HTTPS</strong>: certbot (obtain certificates)<br># disable before first run: <strong>ssl_certificate</strong>, <strong>ssl_certificate_key</strong>, <strong>ssl_trusted_certificate</strong></span>
|
|
|
|
|
<span class="hljs-section">certbot certonly</span> <span class="hljs-attribute">--webroot</span> <span class="hljs-attribute" tooltips tooltip-template="--domain">-d</span> {{ domain() }} <span class="hljs-attribute" tooltips tooltip-template="--domain">-d</span> www.{{ domain() }}<span ng-if="isCDN()"> <span class="hljs-attribute" tooltips tooltip-template="--domain">-d</span> cdn.{{ domain() }}</span> <span class="hljs-attribute">--email</span> {{ data.email ? data.email : 'hello@' + domain() }} <span class="hljs-attribute" tooltips tooltip-template="--webroot-path">-w</span> /var/www/_letsencrypt <span class="hljs-attribute" tooltips tooltip-template="--non-interactive">-n</span> <span class="hljs-attribute">--agree-tos</span> <span class="hljs-attribute">--force-renewal</span><!--
|
|
|
|
|
<span class="hljs-section">certbot certonly</span> <!--
|
|
|
|
|
--><span class="hljs-attribute">--webroot</span> <!--
|
|
|
|
|
--><span ng-if="isNonWWW() || isRedirect()"><span class="hljs-attribute" tooltips tooltip-template="--domain">-d</span> {{ domain() }} </span><!--
|
|
|
|
|
--><span ng-if="isWWW() || isRedirect()"><span class="hljs-attribute" tooltips tooltip-template="--domain">-d</span> www.{{ domain() }} </span><!--
|
|
|
|
|
--><span ng-if="isCDN()"><span class="hljs-attribute" tooltips tooltip-template="--domain">-d</span> cdn.{{ domain() }} </span><!--
|
|
|
|
|
--><span class="hljs-attribute">--email</span> {{ data.email ? data.email : 'hello@' + domain() }} <!--
|
|
|
|
|
--><span class="hljs-attribute" tooltips tooltip-template="--webroot-path">-w</span> /var/www/_letsencrypt <!--
|
|
|
|
|
--><span class="hljs-attribute" tooltips tooltip-template="--non-interactive">-n</span> <!--
|
|
|
|
|
--><span class="hljs-attribute">--agree-tos</span> <!--
|
|
|
|
|
--><span class="hljs-attribute">--force-renewal</span><!--
|
|
|
|
|
|
|
|
|
|
--></span><!--
|
|
|
|
|
|
|
|
|
|