Nextcloud version:12.0.2
Operating system and version: Arch Linux
nginx-mainline version: 1.13.4
PHP version: 7.1.9
Is this the first time you’ve seen this error?: No, it happens on two of my instances, first time I’m reporting it in this firum
Can you reliably replicate it?: Yup, wrong on 2 servers
The issue you are facing: Apps won’t load because of a mime type error
Refused to execute script from ‘https://sc1.c0rn3j.com/wapps/weather/js/app.js?v=c9c946f4245a864f60a240c6d8cd869a-0’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
The output of your Apache/nginx/system log in /var/log/____
:
Here are my nginx config files, this behavior happens on both of them.
I have installed NC by adding these lines to config.php
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/usr/share/webapps/nextcloud/apps’,
‘url’ => ‘/apps’,
‘writable’ => false,
),
1 =>
array (
‘path’ => ‘/var/www/nextcloud/apps’,
‘url’ => ‘/wapps’,
‘writable’ => true,
),
),
and afterwards executing these commands.
sudo mkdir -p /var/www/nextcloud/apps
sudo chown http:http -R /var/www/nextcloud
sudo mkdir -p /usr/share/webapps/nextcloud/data
sudo chown root:http /usr/share/webapps/nextcloud/data
sudo chmod 770 /usr/share/webapps/nextcloud/data