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:
parent
d2064f0ef0
commit
5a68c15da2
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue