server/nextcloud: Added support for php-fpm status page

dehydrated
Felix Stupp 4 years ago
parent 458babf82c
commit 28d49be899
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -19,6 +19,9 @@ nextcloud_release_file: "{{ nextcloud_user_directory }}/nextcloud.tar.bz2"
nextcloud_release_signature: "{{ nextcloud_release_file }}.asc"
nextcloud_config: "{{ nextcloud_installation_directory }}/config/config.php"
status_page_path: "{{ phpfpm_status_page_path }}"
status_page_acl: "{{ nginx_status_page_acl }}"
database_user: "{{ system_user }}"
# database_pass from mysql/database
# database_name from mysql/database

@ -86,3 +86,19 @@ dependencies:
try_files $uri /index.php$request_uri;
access_log off;
}
{% if status_page_path is defined and status_page_path|length -%}
location {{ status_page_path }} {
{{ status_page_acl | indent(width=2) }}
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_index index.php;
include {{ nginx_installation_directory }}/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
fastcgi_pass {{ pool_name }};
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
}
{%- endif %}

Loading…
Cancel
Save