2 sympa.heureux-cyclage.org
3 sympa.cyclocoop.heureux-cyclage.org
5 sympa.lesjantesdunord.heureux-cyclage.org
6 sympa.lesjantesdunord.org
7 sympa.ptitvelo.heureux-cyclage.org
10 client_body_buffer_size 8k;
11 client_max_body_size 10m;
12 location /static-sympa {
13 alias /var/lib/sympa/static_content;
21 include /etc/nginx/conf.d/fastcgi.conf;
23 if ($request_method !~ ^(GET|HEAD)$) {
24 # NOTE: if non GET/HEAD, don't cache and mark user as uncacheable for 1 second via cookie.
27 if ($no_cache = "1") {
28 # NOTE: drop no cache cookie if need be (for some reason, add_header fails if included in prior if-block).
29 add_header Set-Cookie "_mcnc=1; Max-Age=2; Path=/";
30 add_header X-Microcachable "0";
32 if ($http_cookie ~* "_mcnc") {
33 # NOTE: bypass cache if no-cache cookie is set.
36 fastcgi_cache_bypass $no_cache;
37 fastcgi_cache_use_stale updating;
38 fastcgi_cache_valid 200 10s;
39 fastcgi_cache_valid 404 30m;
40 fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
41 fastcgi_no_cache $no_cache;
42 fastcgi_param SCRIPT_NAME '';
43 set $sympa_robot $host;
44 if ($host = "sympa.cyclocoop.heureux-cyclage.org") {
45 set $sympa_robot "sympa.cyclocoop.org";
47 if ($host = "sympa.lesjantesdunord.heureux-cyclage.org") {
48 set $sympa_robot "sympa.lesjantesdunord.org";
50 if ($host = "sympa.ptitvelo.heureux-cyclage.org") {
51 set $sympa_robot "sympa.ptitvelo.net";
53 fastcgi_param SERVER_NAME $sympa_robot;
54 fastcgi_param PATH_INFO $uri;
56 fastcgi_pass_header Cookie;
57 fastcgi_pass_header Set-Cookie;
58 fastcgi_split_path_info ^(.+\.cgi)(/.+)$;
60 fastcgi_pass unix:/run/spawn-fcgi/sympa;