MelBourbon
Chevereto Noob
Hi, I have set my Ubuntu server with nginx using a configuration with a gateway host and then virtual hosts for the several apps (nextcloud, wekan).
Now I'm struggling with setting up this nginx configuration for chevereto. My installation path is
My gateway host configuration looks like this (simplefied):
Which means any requests on my domain with the path nextcloud will be redirected to a local host with a specific port (in this case 82). Please note, all requests to http (port 80) are automatically redirected to https (433).
My configuration for a virtual host looks like this (simplefied):
So the virtual host of nextcloud is now listening on port 82 and takes care of this.
But I tried several things and was not able to set this up for chevereto.
Does anybody uses a similar approach and can share their nginx configuration for this? This would be really appreciated.
Now I'm struggling with setting up this nginx configuration for chevereto. My installation path is
Code:
/var/www/html/chevereto/
My gateway host configuration looks like this (simplefied):
Code:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
location ^~ /nextcloud/ {
# Set max. size of a request (important for uploads to Nextcloud)
client_max_body_size 10G;
# Besides the timeout values have to be raised in nginx' Nextcloud config, these values have to be raised for the proxy as well
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
proxy_read_timeout 3600;
send_timeout 3600;
proxy_buffering off;
proxy_request_buffering off;
proxy_max_temp_file_size 10240m;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:82;
proxy_redirect off;
}
}
Which means any requests on my domain with the path nextcloud will be redirected to a local host with a specific port (in this case 82). Please note, all requests to http (port 80) are automatically redirected to https (433).
My configuration for a virtual host looks like this (simplefied):
Code:
server {
listen 127.0.0.1:82;
server_name 127.0.0.1;
# Path to the root of your installation
root /var/www/;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ^~ /nextcloud {
# set max upload size
client_max_body_size 10G;
fastcgi_buffers 64 4K;
# Enable gzip but do not remove ETag headers
gzip on;
gzip_vary on;
gzip_comp_level 4;
gzip_min_length 256;
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
# Uncomment if your server is build with the ngx_pagespeed module
# This module is currently not supported.
#pagespeed off;
location /nextcloud {
rewrite ^ /nextcloud/index.php$request_uri;
}
}
So the virtual host of nextcloud is now listening on port 82 and takes care of this.
But I tried several things and was not able to set this up for chevereto.
Does anybody uses a similar approach and can share their nginx configuration for this? This would be really appreciated.