Fix the nginx socket configuration.
This commit is contained in:
parent
b61d5e609e
commit
04434716eb
|
@ -34,3 +34,4 @@ nextcloud_ldap_auth: False
|
||||||
nextcloud_phpfpm_default_memory_limit: "512M"
|
nextcloud_phpfpm_default_memory_limit: "512M"
|
||||||
php_global_settings: '{{ nextcloud_php_global_settings }}'
|
php_global_settings: '{{ nextcloud_php_global_settings }}'
|
||||||
phpfpm_pools: '{{ nextcloud_phpfpm_pools }}'
|
phpfpm_pools: '{{ nextcloud_phpfpm_pools }}'
|
||||||
|
nextcloud_phpfpm_listen_on_socket: True
|
|
@ -1,6 +1,9 @@
|
||||||
upstream php-handler {
|
upstream php-handler {
|
||||||
|
{% if nextcloud_phpfpm_listen_on_socket %}
|
||||||
|
server unix:{{ item.listen }};
|
||||||
|
{% else %}
|
||||||
server {{ item.listen }};
|
server {{ item.listen }};
|
||||||
#server unix:/var/run/php5-fpm.sock;
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
|
@ -28,6 +28,7 @@ nextcloud_php_required_packages:
|
||||||
- 'php-apcu'
|
- 'php-apcu'
|
||||||
|
|
||||||
phpfpm_default_memory_limit: '{{ nextcloud_phpfpm_default_memory_limit }}'
|
phpfpm_default_memory_limit: '{{ nextcloud_phpfpm_default_memory_limit }}'
|
||||||
|
phpfpm_listen_on_socket: '{{ nextcloud_phpfpm_listen_on_socket }}'
|
||||||
nextcloud_php_global_settings:
|
nextcloud_php_global_settings:
|
||||||
- { option: 'always_populate_raw_post_data', value: '-1' }
|
- { option: 'always_populate_raw_post_data', value: '-1' }
|
||||||
- { option: 'allow_url_fopen', value: 'on' }
|
- { option: 'allow_url_fopen', value: 'on' }
|
||||||
|
|
Loading…
Reference in New Issue