mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2937 from holta/pbx_db_CHECKREFERER_0
freepbx.yml: 'fwconsole set CHECKREFERER 0' (false) if pbx_try_nginx
This commit is contained in:
commit
12f4df1ba5
1 changed files with 9 additions and 5 deletions
|
@ -215,13 +215,17 @@
|
||||||
dest: /etc/systemd/system/
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
|
|
||||||
- name: Add "$amp_conf['CHECKREFERER'] = false;" to /etc/freepbx.conf #2931 - if pbx_try_nginx"
|
- 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 completely override FreePBX's stored settings if nec
|
||||||
lineinfile:
|
command: fwconsole set CHECKREFERER 0 # Or/later run 'fwconsole set CHECKREFERER 1' (1 means true) to restore FreePBX's default strict checking.
|
||||||
path: /etc/freepbx.conf
|
|
||||||
insertbefore: '^\?>$' # Match exact line '?>' -- BOTTOM OF FILE NEC!
|
|
||||||
line: "$amp_conf['CHECKREFERER'] = false;"
|
|
||||||
when: pbx_try_nginx
|
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)'
|
# - 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