瀏覽代碼

Support letsencrypt certs for API.

Letsencrypt could makes symlinks to standard locations in the future.
tags/2016.12
Michael Kutý 8 年之前
父節點
當前提交
08eb0a4d28
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      salt/files/_api.conf

+ 4
- 1
salt/files/_api.conf 查看文件

@@ -5,7 +5,10 @@ rest_cherrypy:
port: {{ api.bind.port }}
host: {{ api.bind.address }}
{%- if api.get('ssl', {}).get('enabled', False) %}
{%- if api.ssl.engine == 'salt' %}
{%- if api.ssl.engine == 'letsencrypt' %}
ssl_crt: /etc/letsencrypt/live/{{ api.ssl.name }}/cert.pem
ssl_key: /etc/letsencrypt/live/{{ api.ssl.name }}/privkey.pem
{%- elif api.ssl.engine == 'salt' %}
ssl_crt: /etc/ssl/certs/{{ system.name }}.{{ system.domain }}.crt
ssl_key: /etc/ssl/private/{{ system.name }}.{{ system.domain }}.key
{%- else %}

Loading…
取消
儲存