added x-forward-ip support
This commit is contained in:
parent
0e8c531d0b
commit
b0fe6bb0ee
5 changed files with 16 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
- name: execute ssl template
|
||||
template:
|
||||
src: ssl_files.j2
|
||||
src: ssl_files.conf.j2
|
||||
dest: /etc/nginx/conf.d/ssl_files.conf
|
||||
notify:
|
||||
- restart nginx
|
||||
|
|
@ -37,10 +37,17 @@
|
|||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: execute proxy template
|
||||
template:
|
||||
src: proxy.conf.j2
|
||||
dest: /etc/nginx/conf.d/proxy.conf
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: create nginx vhosts
|
||||
template:
|
||||
src: vhost.conf.j2
|
||||
dest: "/etc/nginx/sites-available/{{ item.key }}"
|
||||
src: vhost.j2
|
||||
with_dict: "{{ nginx.vhosts }}"
|
||||
notify:
|
||||
- restart nginx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue