Ajout : agendav.cyclocoop.org .
[lhc/ateliers.git] / etc / nginx / site.d / davical / site.conf
index 9146085..999d40d 100644 (file)
@@ -1,6 +1,7 @@
 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;
@@ -25,17 +26,17 @@ location ~ /\. {
  }
 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.