server_name
davical.heureux-cyclage.org
- davical.autogeree.net;
+ davical.autogeree.net
+ davical.cyclocoop.org;
client_body_buffer_size 8k;
client_max_body_size 10m;
# NOTE: to get DAViCal and nginx working with iCal 6.0 clients.
return 301 /caldav.php$1;
}
-location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
+location ~* ^.+\.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
root /usr/share/davical/htdocs/;
access_log off;
expires 30d;
}
location ~ \.php(|/.*)$ {
root /usr/share/davical/htdocs/;
- keepalive_timeout 0;
+ keepalive_timeout 10;
include /etc/nginx/conf.d/fastcgi.conf;
- if ($request_method = OPTIONS) {
- add_header Access-Control-Allow-Credentials "true";
- add_header Access-Control-Allow-Headers "User-Agent,Authorization,Content-type,Depth,If-match,If-None-Match,Lock-Token,Timeout,Destination,Overwrite,X-client,X-Requested-With";
- add_header Access-Control-Allow-Methods "GET,POST,OPTIONS,PROPFIND,REPORT,PUT,MOVE,DELETE,LOCK,UNLOCK";
- add_header Access-Control-Allow-Origin "*";
- add_header Content-Length 0;
- add_header Content-Type text/plain;
- return 200;
- }
+ #if ($request_method = OPTIONS) {
+ # add_header Access-Control-Allow-Credentials "true";
+ # add_header Access-Control-Allow-Headers "User-Agent,Authorization,Content-type,Depth,If-match,If-None-Match,Lock-Token,Timeout,Destination,Overwrite,X-client,X-Requested-With";
+ # add_header Access-Control-Allow-Methods "GET,POST,OPTIONS,PROPFIND,REPORT,PUT,MOVE,DELETE,LOCK,UNLOCK";
+ # add_header Access-Control-Allow-Origin "*";
+ # add_header Content-Length 0;
+ # add_header Content-Type text/plain;
+ # return 200;
+ # }
set $no_cache "0";
if ($request_method !~ ^(GET|HEAD)$) {
# NOTE: if non GET/HEAD, don't cache and mark user as uncacheable for 1 second via cookie.