server{includelisten_port.conf;listen443defaultssl;sslon;ssl_certificate/etc/nginx/ssl/deimos.fr/server-unified.crt;ssl_certificate_key/etc/nginx/ssl/deimos.fr/server.key;server_nameowncloud.deimos.fr;root/usr/share/nginx/www/deimos.fr/owncloud;indexindex.php;client_max_body_size1024M;access_log/var/log/nginx/cloud.deimos.fr_access.log;error_log/var/log/nginx/cloud.deimos.fr_error.log;# Force SSLif($scheme=http){return301https://$host$request_uri;}# deny direct accesslocation~^/(data|config|\.ht|db_structure\.xml|README){denyall;}# default try orderlocation/{try_files$uri$uri/@webdav;}# owncloud WebDAVlocation@webdav{fastcgi_cachemycache;fastcgi_cache_key$request_method$host$request_uri;fastcgi_cache_validany1h;fastcgi_split_path_info^(.+\.php)(/.*)$;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;fastcgi_paramHTTPSon;includefastcgi_params;fastcgi_passunix:/var/run/php5-fpm.sock;fastcgi_intercept_errorson;}location~\.php${try_files$uri=404;fastcgi_cachemycache;fastcgi_cache_key$request_method$host$request_uri;fastcgi_cache_validany1h;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;fastcgi_paramHTTPSon;includefastcgi_params;fastcgi_passunix:/var/run/php5-fpm.sock;fastcgi_intercept_errorson;}# Drop configincludedrop.conf;}
server{includelisten_port.conf;listen443defaultssl;sslon;ssl_certificate/etc/nginx/ssl/deimos.fr/server-unified.crt;ssl_certificate_key/etc/nginx/ssl/deimos.fr/server.key;server_namecloud.deimos.fr;root/usr/share/nginx/www/deimos.fr/owncloud;indexindex.php;client_max_body_size1024M;access_log/var/log/nginx/cloud.deimos.fr_access.log;error_log/var/log/nginx/cloud.deimos.fr_error.log;# Force SSLif($scheme=http){return301https://$host$request_uri;}rewrite^/caldav((/|$).*)$/remote.php/caldav$1last;rewrite^/carddav((/|$).*)$/remote.php/carddav$1last;rewrite^/webdav((/|$).*)$/remote.php/webdav$1last;error_page403=/core/templates/403.php;error_page404=/core/templates/404.php;location~^/(data|config|\.ht|db_structure\.xml|README){denyall;}location/{rewrite^/.well-known/host-meta/public.php?service=host-metalast;rewrite^/.well-known/host-meta.json/public.php?service=host-meta-jsonlast;rewrite^/.well-known/carddav/remote.php/carddav/redirect;rewrite^/.well-known/caldav/remote.php/caldav/redirect;rewrite^(/core/doc/[^\/]+/)$$1/index.html;try_files$uri$uri/index.php;}location~^(?<script_name>.+?\.php)(?<path_info>/.*)?${try_files$script_name=404;fastcgi_cache_validany1h;includefastcgi_params;fastcgi_passunix:/var/run/php5-fpm.sock;}location~*^.+.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)${expires30d;# Optional: Don't log access to assetsaccess_logoff;}# Drop configincludedrop.conf;}
There are desktop clients available, allowing automatic file synchronization. You can download these versions here. If you need a higher level of logging, you can also launch the owncloud client like this: