Allow to pass nginx.d files

This commit is contained in:
Luke Murphy 2020-04-14 11:35:45 +02:00
parent c099827d88
commit 6a23c42a7e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
---
- name: Create nginx customisation directory
become: true
file:
path: "/home/dokku/{{ app }}/nginx.conf.d/"
state: directory
owner: dokku
group: dokku
- name: Copy over the nginx custom configuration
become: true
template:
src: "{{ item }}"
dest: "/home/dokku/{{ app }}/nginx.conf.d/{{ item }}"
owner: dokku
group: dokku
with_fileglob:
- "{{ app_config_root }}/nginx.d/*.conf"
- name: Reload nginx to enable custom configurations
become: true
service:
name: nginx
state: reloaded

View File

@ -6,3 +6,4 @@
- include: ./lib/http.yml - include: ./lib/http.yml
- include: ./lib/https.yml - include: ./lib/https.yml
- include: ./lib/proxy.yml - include: ./lib/proxy.yml
- include: ./lib/nginxd.yml