Skip to content

Commit 92c154f

Browse files
bigstinky86alessfg
authored andcommitted
SSL certificate and key path to default.conf (#78)
* Fix example playbook section * Add SSL certificate and key upload destination path to configuration file
1 parent 7670d11 commit 92c154f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,14 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
411411
port: 80
412412
server_name: localhost
413413
error_page: /usr/share/nginx/html
414+
autoindex: false
414415
web_server:
415416
locations:
416417
default:
417418
location: /
418419
html_file_location: /usr/share/nginx/html
419420
html_file_name: index.html
421+
autoindex: false
420422
```
421423

422424
This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a localhost and installing the open source version of NGINX as a reverse proxy.

templates/http/default.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ upstream {{ item.value.upstreams[upstream].name }} {
1717
server {
1818
{% if item.value.ssl is defined %}
1919
listen 443 ssl;
20-
ssl_certificate /etc/ssl/certs/{{ item.value.ssl.cert }};
21-
ssl_certificate_key /etc/ssl/private/{{ item.value.ssl.key }};
20+
ssl_certificate {{ nginx_ssl_crt_upload_dest }}/{{ item.value.ssl.cert }};
21+
ssl_certificate_key {{ nginx_ssl_key_upload_dest }}/{{ item.value.ssl.key }};
2222
{% else %}
2323
listen {{ item.value.port }};
2424
{% endif %}

0 commit comments

Comments
 (0)