I use nextcloud v29.0.6 on Ubuntu 23.10 with nginx.
I run occ setupchecks -vv
and I get these errors (though the cloud itself works fine):
JavaScript source map support: Your webserver is not set up to serve
.js.map
files. Without these files, JavaScript Source Maps won’t function properly, making it more challenging to troubleshoot and debug any issues that may arise.JavaScript modules support: Could not check for JavaScript support via any of your
trusted_domains
noroverwrite.cli.url
. This may be the result of a server-side DNS mismatch or outbound firewall rule. Please check manually if your webserver serves.mjs
files using the JavaScript MIME type.To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its
trusted_domains
or theoverwrite.cli.url
.HTTP headers: Could not check that your web server serves security headers correctly, unable to query
/nextcloud/index.php/heartbeat
In my nginx logs I can see it tries to access over HTTP:
- HEAD /nextcloud/apps/settings/js/map-test.js.map HTTP/1.1
- HEAD /nextcloud/apps/settings/js/esm-test.mjs HTTP/1.1
- GET /nextcloud/index.php/heartbeat HTTP/1.1
Using HTTPS solves the access issue (e.g. https://adrhc.go.ro/nextcloud/index.php/heartbeat works fine) but how can I tell to occ setupchecks
to use HTTPS?
I have these in config.php:
'overwriteprotocol' => 'https',
'overwritehost' => 'adrhc.go.ro',
'overwritewebroot' => '/nextcloud',
'overwrite.cli.url' => 'https://adrhc.go.ro/nextcloud',
'trusted_domains' =>
array (
0 => 'adrhc.go.ro',
),
In Administration / Overview the issue above determines an:
Error occurred while checking server setup
red message, because, I guess, internally uses occ setupchecks
too.
UPDATE
I only have nextcloud configured in the nginx https server but nothing on the http side.