Fix the nginx socket configuration.

This commit is contained in:
Andrea Dell'Amico 2021-08-11 16:48:27 +02:00
parent b61d5e609e
commit 04434716eb
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 8 additions and 3 deletions

View File

@ -33,4 +33,5 @@ nextcloud_ldap_auth: False
nextcloud_phpfpm_default_memory_limit: "512M"
php_global_settings: '{{ nextcloud_php_global_settings }}'
phpfpm_pools: '{{ nextcloud_phpfpm_pools }}'
phpfpm_pools: '{{ nextcloud_phpfpm_pools }}'
nextcloud_phpfpm_listen_on_socket: True

View File

@ -1,6 +1,9 @@
upstream php-handler {
server {{ item.listen }};
#server unix:/var/run/php5-fpm.sock;
{% if nextcloud_phpfpm_listen_on_socket %}
server unix:{{ item.listen }};
{% else %}
server {{ item.listen }};
{% endif %}
}
server {

View File

@ -28,6 +28,7 @@ nextcloud_php_required_packages:
- 'php-apcu'
phpfpm_default_memory_limit: '{{ nextcloud_phpfpm_default_memory_limit }}'
phpfpm_listen_on_socket: '{{ nextcloud_phpfpm_listen_on_socket }}'
nextcloud_php_global_settings:
- { option: 'always_populate_raw_post_data', value: '-1' }
- { option: 'allow_url_fopen', value: 'on' }