Allow to pass nginx.d files
This commit is contained in:
parent
c099827d88
commit
6a23c42a7e
24
plays/postdeploy/lib/nginxd.yml
Normal file
24
plays/postdeploy/lib/nginxd.yml
Normal 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
|
@ -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
|
||||||
|
Reference in New Issue
Block a user