Browse Source

Merge pull request #17 from michaelkuty/feature/api_ssl

Support letsencrypt certs for API.
tags/2016.12
Filip Pytloun 8 years ago
parent
commit
f2f9ace4c4
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      salt/files/_api.conf

+ 4
- 1
salt/files/_api.conf View File

port: {{ api.bind.port }} port: {{ api.bind.port }}
host: {{ api.bind.address }} host: {{ api.bind.address }}
{%- if api.get('ssl', {}).get('enabled', False) %} {%- 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_crt: /etc/ssl/certs/{{ system.name }}.{{ system.domain }}.crt
ssl_key: /etc/ssl/private/{{ system.name }}.{{ system.domain }}.key ssl_key: /etc/ssl/private/{{ system.name }}.{{ system.domain }}.key
{%- else %} {%- else %}

Loading…
Cancel
Save