Skip to content

Commit

Permalink
Customize ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed May 9, 2016
1 parent 8f145b6 commit 7acf411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ server {
server_name {{servernames}};
{% endif -%}

{% if ssl and wsgi_nginx_ssl_crt and wsgi_nginx_ssl_key -%}
{% if ssl -%}
ssl on;
ssl_protocols {{wsgi_nginx_ssl_protocols}};
ssl_certificate {{wsgi_nginx_ssl_crt}};
ssl_certificate_key {{wsgi_nginx_ssl_key}};
ssl_certificate {{app.nginx_ssl_crt|default(wsgi_nginx_ssl_crt)}};
ssl_certificate_key {{app.nginx_ssl_key|default(wsgi_nginx_ssl_key)}};
{% endif %}

access_log {{log_dir + '/' + app.name + '-nginx-access.log'}};
Expand Down

0 comments on commit 7acf411

Please sign in to comment.