Nextcloud version: 20.0.7
Operating system and version: Debian GNU/Linux 10 (buster)
Apache or nginx version : Apache/2.4.38 (Debian), nginx/1.14.2
PHP version: 7.3
The issue you are facing:
I wanted to try out Nextcloud, so I installed it on a rather powerful VM (6-Core, 32Gb Ram, 1Tb SSD). But I am still facing performance issues, e.g creating a new text document takes about 10 seconds. Since I really doubt it’s the specs of my VM, I think I am missing some configurations / have misconfigured something. I am running Apache2 behind Nginx Reverse Proxy (both installed on the same machine), so I adapted the config/config.php
file:
'trusted_proxies' =>
array (
0 => 'hub.mydomain.com',
),
'overwritehost' => 'hub.mydomain.com',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://hub.mydomain.com',
The output of your Nextcloud log in Admin > Logging:
The only significant error I’m getting is this, but It’s from 3 days ago, so…
You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead.
I installed php-intl via apt, and the error never came up since, so it shouldn’t be a problem
Here’s my Nginx Configuration:
upstream backend {
server 127.0.0.1:9999;
}
server {
server_name hub.mydomain.com;
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/hub.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hub.mydomain.com/privkey.pem;
ssl_stapling on;
ssl_stapling_verify on;
include snippets/headers.conf;
include snippets/ssl-options.conf;
location / {
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 64;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Front-End-Https on;
proxy_pass http://backend;
}
}
server {
if ($host = hub.mydomain.com) {
return 301 https://$host$request_uri;
}
listen 80;
listen [::]:80;
server_name hub.mydomain.com;
return 404;
}