mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
nginx - softcode
This commit is contained in:
parent
1779f5c338
commit
679790b1e7
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
||||||
- { src: "server.conf",dest: "/etc/nginx/" }
|
- { src: "server.conf",dest: "/etc/nginx/" }
|
||||||
- { src: "nginx.conf",dest: "/etc/nginx/" }
|
- { src: "nginx.conf",dest: "/etc/nginx/" }
|
||||||
- { src: "ports.conf" , dest: "/etc/{{ apache_service }}/" }
|
- { 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
|
when: nginx_enabled
|
||||||
|
|
||||||
- name: Clean stale config files
|
- name: Clean stale config files
|
||||||
|
@ -14,8 +14,8 @@
|
||||||
state: absent
|
state: absent
|
||||||
path: '{{ item.path }}'
|
path: '{{ item.path }}'
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "/etc/nginx/conf.d/usb-lib.conf" }
|
- { path: "{{ nginx_config_dir }}/usb-lib.conf" }
|
||||||
- { path: "/etc/nginx/conf.d/modules.conf" }
|
- { path: "{{ nginx_config_dir }}/modules.conf" }
|
||||||
|
|
||||||
- name: Insure that apache2 is not running -- we may need port swap
|
- name: Insure that apache2 is not running -- we may need port swap
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -10,7 +10,7 @@ server {
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
# let individual services drop location blocks in conf.d
|
# let individual services drop location blocks in conf.d
|
||||||
include /etc/nginx/conf.d/*;
|
include {{ nginx_config_dir }}/*;
|
||||||
|
|
||||||
location ~ .*\.php$ {
|
location ~ .*\.php$ {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue