mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
freepbx.yml: Set CHECKREFERER to false in /etc/freepbx.conf for NGINX #2931
This commit is contained in:
parent
5a19618314
commit
39950cc471
1 changed files with 7 additions and 0 deletions
|
@ -215,6 +215,13 @@
|
||||||
dest: /etc/systemd/system/
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
|
|
||||||
|
- name: Add "$amp_conf['CHECKREFERER'] = false;" to /etc/freepbx.conf #2931 - if pbx_try_nginx"
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/freepbx.conf
|
||||||
|
insertbefore: '^\?>$' # Match exact line '?>' -- BOTTOM OF FILE NEC!
|
||||||
|
line: "$amp_conf['CHECKREFERER'] = false;"
|
||||||
|
when: pbx_try_nginx
|
||||||
|
|
||||||
# - name: 'FreePBX - fix file permissions for NGINX: /etc/freepbx.conf (0644), /var/log/asterisk/freepbx.log (0666)'
|
# - name: 'FreePBX - fix file permissions for NGINX: /etc/freepbx.conf (0644), /var/log/asterisk/freepbx.log (0666)'
|
||||||
# file:
|
# file:
|
||||||
# #state: file
|
# #state: file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue