X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-remorque%2Fsite.conf;fp=etc%2Fnginx%2Fsite.d%2Flhc-remorque%2Fsite.conf;h=5d0f79c6cc9b954e28210e110aec856a4de2f9b2;hb=b7595a000cae850e0702938336ce116376bc7d67;hp=0000000000000000000000000000000000000000;hpb=e61ce31922a217eafcaa2a2d05d906f9032133e9;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-remorque/site.conf b/etc/nginx/site.d/lhc-remorque/site.conf new file mode 100644 index 0000000..5d0f79c --- /dev/null +++ b/etc/nginx/site.d/lhc-remorque/site.conf @@ -0,0 +1,24 @@ +server_name remorque.heureux-cyclage.org; + +client_body_buffer_size 8k; +client_max_body_size 10m; +location / { + try_files $uri $uri/index.xhtml = 404; + } +location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ { + access_log off; + expires 30d; + log_not_found off; + } +location ~ /\. { + access_log off; + deny all; + log_not_found off; + } +location /cgi/ikiwiki.cgi { + include /etc/nginx/conf.d/fastcgi.conf; + fastcgi_index cgi/ikiwiki.cgi; + fastcgi_pass unix:/run/spawn-fcgi/lhc-remorque; + } + +# vim: ft=sh