source: project/release/4/chickadee/trunk/chickadee-config-nginx.scm @ 27117

Last change on this file since 27117 was 27117, checked in by Jim Ursetto, 9 years ago

chickadee 0.10.1: Limit match result set size (requires chicken-doc 0.4.4) to prevent runaway memory usage. Also added apparmor profile

File size: 1.5 KB
Line 
1(use chickadee spiffy uri-common simple-sha1)
2(use (only chicken-doc-html syntax-highlighter colorize prettify-js))
3
4;; Helpers
5(define uri uri-reference)
6(define (fingerprint fn)
7  ;; alternative: (number->string (file-modification-time fn))
8  (substring (or (sha1sum fn) (error "file not found" fn))
9             0 8))
10(define cache-bust ;; Fingerprint FN (relative to cdoc) and return cache-busting URI.
11  (lambda (fn)
12    (let ((cdoc (uri->string (cdoc-uri))))
13      (uri (string-append cdoc "/" fn "?"
14                          (fingerprint (make-pathname (list (root-path) cdoc)
15                                                      fn)))))))
16
17(root-path "root")
18(server-port 8388)
19(max-connections 8)
20
21(access-log "logs/access.log")
22(error-log "logs/error.log")
23(debug-log (current-error-port))
24(ajax-log #f)   ;; Slow; not recommended for production.
25
26(cdoc-uri (uri "/cdoc"))
27(chickadee-uri (uri "/doc"))
28(incremental-search-uri (uri "/cdoc/ajax/prefix"))
29
30(chickadee-css-files (list (cache-bust "chickadee.css")))
31(chickadee-early-js-files (list (uri "/cdoc/modernizr.respond.93248.js")))
32(chickadee-js-files (list (uri "http://code.jquery.com/jquery-1.4.4.min.js")
33                          (cache-bust "chickadee-jquery.js")
34                          (cache-bust "prettify-bundle.js")))
35
36(maximum-match-results 150)
37(maximum-match-signatures 150)
38(incremental-search 15)
39(incremental-search-delay 50)
40(cache-nodes-for 600)
41(cache-static-content-for #t)
42
43(syntax-highlighter prettify-js)
44
45(last-modified (current-seconds))
Note: See TracBrowser for help on using the repository browser.