1
0
Fork 0
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:
root 2021-08-10 19:20:37 -04:00
parent 5a19618314
commit 39950cc471

View file

@ -215,6 +215,13 @@
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)'
# file:
# #state: file