So, it seems that in Nextcloud version 27.1.2 there’s a bit of a bug with the default nextcloud.conf file which causes an error to show in the admin panel saying: “Your web server is not properly set up to resolve “/nextcloud/ocm-provider/””
There has been a patch merged which changes out this:
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
For this:
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
The trouble is I don’t see that first line, or a lot of the default Nextcloud configuration, to replace anywhere in my /etc/php/8.2/fpm/pool.d/nextcloud.conf ,which looks like this:
user = nextcloud
group = nextcloud
chdir = /var/www/nextcloud
listen = /var/run/php/php8.2-fpm-nextcloud.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 8
pm.max_requests = 500
request_terminate_timeout = 1d
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 4
; Additional php.ini defines, specific to this pool of workers.
env[PATH] = $PATH
php_admin_value[memory_limit] = 512M
php_value[upload_max_filesize] = 10G
php_value[post_max_size] = 10G
php_value[default_charset] = UTF-8
; OPcache is already activated by default
; php_value[opcache.enable]=1
; The following parameters are nevertheless recommended for Nextcloud
; see here: https://docs.nextcloud.com/server/15/admin_manual/installation/server_tuning.html#enable-php-opcache
php_value[opcache.enable_cli]=1
php_value[opcache.interned_strings_buffer]=32
php_value[opcache.max_accelerated_files]=10000
php_value[opcache.memory_consumption]=128
php_value[opcache.save_comments]=1
php_value[opcache.revalidate_freq]=1
; https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html#id1
php_value[apc.enabled]=1
php_value[apc.enable_cli]=1
So I guess I have 2 questions:
- How can I apply this fix manually?
- Is it safe that my .conf file doesn’t seem to include any of Nextcloud’s default location rewrites? Is that something handled elsewhere in Yunohost?