40 lines
886 B
Nginx Configuration File
40 lines
886 B
Nginx Configuration File
server {
|
|
server_name cloud.example.com;
|
|
|
|
listen 443 ssl;
|
|
|
|
set $max_size 4G;
|
|
|
|
root /data/cloud/nextcloud;
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
try_files $uri /index.php$request_uri;
|
|
}
|
|
|
|
location ~ ^/console\.php {
|
|
deny all;
|
|
}
|
|
|
|
location ~ ^(.+?\.php)(.*)$ {
|
|
fastcgi_split_path_info ^(.+?\.php)(.*)$;
|
|
fastcgi_pass unix:/run/nextcloud.sock;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param front_controller_active true;
|
|
fastcgi_param PHP_VALUE "upload_max_filesize=$max_size\n post_max_size=$max_size";
|
|
include fastcgi.conf;
|
|
}
|
|
|
|
location /updater { index index.php; }
|
|
location /ocm-provider { index index.php; }
|
|
location /ocs-provider { index index.php; }
|
|
|
|
location = /.well-known/carddav {
|
|
return 301 $scheme://$host:$server_port/remote.php/dav;
|
|
}
|
|
|
|
location = /.well-known/caldav {
|
|
return 301 $scheme://$host:$server_port/remote.php/dav;
|
|
}
|
|
}
|