nginx: Re-introduce bootstrap_certs
This commit is contained in:
parent
b680bf6902
commit
75795f0238
5 changed files with 11 additions and 3 deletions
|
@ -11,8 +11,12 @@ server {
|
|||
server_name {{ site.server_name | default(inventory_hostname) }}{% if site.server_alias is defined %} {{ site.server_alias }}{% endif %};
|
||||
|
||||
include /etc/nginx/tls_params;
|
||||
{% if nginx_bootstrap_certs | default(false) %}
|
||||
include "snippets/snakeoil.conf";
|
||||
{% else %}
|
||||
ssl_certificate /var/lib/dehydrated/certs/{{ site.server_name }}/fullchain.pem;
|
||||
ssl_certificate_key /var/lib/dehydrated/certs/{{ site.server_name }}/privkey.pem;
|
||||
{% endif %}
|
||||
|
||||
index {{ nginx_index | default('index.php index.html index.htm') }};
|
||||
client_max_body_size {{ nginx_client_max_body_size }};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue