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

freepbx.yml: 'fwconsole set CHECKREFERER 0' if pbx_try_nginx

This commit is contained in:
A Holt 2021-08-12 09:47:23 -04:00 committed by GitHub
parent d2064f0ef0
commit 5a68c15da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,13 +215,17 @@
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;"
- name: FreePBX - Run 'fwconsole set CHECKREFERER 0' (0 means false) so 'Submit' button definitively works at http://box/freepbx >> Settings >> Advanced Settings - if pbx_try_nginx -- FYI you can run 'fwconsole set -l' or 'fwconsole set CHECKREFERER' to view FreePBX settings -- FYI /etc/freepbx.conf can override individual settings (variable values) in FreePBX's internal db if nec
command: fwconsole set CHECKREFERER 0 # Run 'fwconsole set CHECKREFERER 1' to restore FreePBX's default strict checking.
when: pbx_try_nginx
# - 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