1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

nginx - softcode

This commit is contained in:
Jerry Vonau 2020-01-04 00:54:40 -06:00
parent 1779f5c338
commit 679790b1e7
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
- { src: "server.conf",dest: "/etc/nginx/" }
- { src: "nginx.conf",dest: "/etc/nginx/" }
- { src: "ports.conf" , dest: "/etc/{{ apache_service }}/" }
- { src: "iiab.conf.j2",dest: "/etc/nginx/conf.d/iiab.conf" }
- { src: "iiab.conf.j2",dest: "{{ nginx_config_dir }}/iiab.conf" }
when: nginx_enabled
- name: Clean stale config files
@ -14,8 +14,8 @@
state: absent
path: '{{ item.path }}'
with_items:
- { path: "/etc/nginx/conf.d/usb-lib.conf" }
- { path: "/etc/nginx/conf.d/modules.conf" }
- { path: "{{ nginx_config_dir }}/usb-lib.conf" }
- { path: "{{ nginx_config_dir }}/modules.conf" }
- name: Insure that apache2 is not running -- we may need port swap
systemd:

View file

@ -10,7 +10,7 @@ server {
index index.php index.html index.htm;
# let individual services drop location blocks in conf.d
include /etc/nginx/conf.d/*;
include {{ nginx_config_dir }}/*;
location ~ .*\.php$ {
proxy_set_header X-Real-IP $remote_addr;