Blog hébergé par Yves et Iris :-)

Aller au contenu | Aller au menu | Aller à la recherche

File synchronization with ownCloud using Nginx on Debian

ownCloud is great! I chose it with the aim of sharing contacts and calendars with my server more reliably, and it is working perfectly.

After having used ownCloud for some time, I got interested in its file synchronization feature. Unfortunately, even though I heeded all the advice given in the documentation, I could not get any file bigger than 1MB to synchronize. Since I had no real use for this feature (I use NFS and SSHFS), I just moved on… until today.

Cet article existe aussi en français.

Today, I wanted to synchronize my Minetest worlds between two computers. I did not want that the data reside on the server only; I needed local, synchronized, storage. But one just-generated Minetest world is already about 1.5MB.

Having searched the Internet a bit, it occurred to me that the solution to my problem is really simple, just well hidden.

The Nginx documentation says that the client_max_body_size parameter is allowed for all contexts, in particular for the location context, as it was used in my configuration. But I guess the version of Nginx in Debian stable is too old; anyway, this directive is just ignored.

In order to have a fully working synchronization of files by ownCloud, it was enough to create a file named /etc/nginx/conf.d/clientmaxbodysize.conf with this contents:

client_max_body_size 10000m;

This amounts to putting this line in the http context. It worked.

Ajouter un commentaire

Le code HTML est affiché comme du texte et les adresses web sont automatiquement transformées.

La discussion continue ailleurs

URL de rétrolien :

Fil des commentaires de ce billet