Proxy the irc logs from pre.racket-lang.org.

That's where the bot needs to run; use a proxy instead of NFS.
This commit is contained in:
Eli Barzilay 2011-02-03 21:24:11 -05:00
parent e3c02f7072
commit d2a6da7561

View File

@ -11,9 +11,14 @@
@page[#:title "IRC" #:part-of 'community]{
@iframe[src: webchat-link width: "100%" height: "400"]})
(define irc-logs-symlink
(symlink "/home/scheme/irc-logs/racket/" "irc-logs"))
(define (irc-logs text) @a[href: (list irc-logs-symlink "/")]{@text})
(define irc-logs
(let ()
@plain[#:file "irc-logs/.htaccess" #:referrer values]{
RewriteEngine on
RewriteRule ^(.*)$ http://pre.racket-lang.org@;
/irc-logs/@||racket/@|"$1"| [P]
}
(lambda (text) @a[href: "irc-logs/"]{@text})))
(define (irc-quick)
@parlist[@strong{Discussion Channel}