+ php intl

* fix blocking all php script except index.php
This commit is contained in:
2023-03-19 14:56:31 +03:00
parent 7d745761f2
commit 82a4dc6f55
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@
locations:
- pattern: '~ ^/*.-backend/'
options: set $upstream unix:/run/php7.4-fpm-backend.sock;
- pattern: '~* ^(?!.+\.php/)(.+\.php)$'
- pattern: '~* ^(?!/index).*\.php$'
options: return 403;
php_options: |

View File

@ -35,7 +35,8 @@
# mysql - это нужно только для WordPress
# mbstring требует только некоторые пакеты в laravel
# bcmath - нужно для работы парсера Excel файлов на одном из проектов
php__packages: [ 'curl', 'xml', 'gd', 'zip', 'mbstring', 'mysql', 'bcmath' ]
# Laravel/OctoberCMS: intl
php__packages: [ 'curl', 'xml', 'gd', 'zip', 'mbstring', 'mysql', 'bcmath', 'intl' ]
php__composer_upstream_enabled: '{{ True
if (ansible_distribution_release in
[ "buster" ])