Fix OAuth callback URL.
[lw2-viewer.git] / config-example.lisp
blob28eb9773d2e262f0ee2a807bab79d7874394ed68
1 (in-package #:lw2-viewer.config)
3 (reset-site-definitions)
5 (define-site
6 :uri "http://localhost:4242/"
7 :title "Example Site"
8 :description "This is an example."
9 :class lesswrong-viewer-site
10 :main-site-title "LessWrong"
11 :main-site-abbreviation "LW"
12 :main-site-uri "https://www.lesswrong.com/"
14 ; The following line will enable use of fonts.obormot.net.
15 ; This will not work unless you have permission to use these fonts.
17 ; :fonts-source (make-instance 'obormot-fonts-source)
19 :backend ("lw2" ; Supported backends: lw2 ea-forum lw2-legacy arbital accordius
20 :graphql-uri "https://www.lesswrong.com/graphql"
21 ;:magnum-crosspost-site "ea.example.com" ; set this to the hostname of another defined site to enable crosspost retrieval.
23 ; Uncomment the following for EA Forum OAuth 2.0 support.
24 ;:oauth2.0-login-uri "https://login.effectivealtruism.org/"
25 ;:oauth2.0-client-id "foo"
26 ;:oauth2.0-client-secret "bar"
28 :algolia-search-uri "https://z0gr6exqhd-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20vanilla%20JavaScript%203.24.5%3Breact-instantsearch%204.1.3%3BJS%20Helper%202.23.0&x-algolia-application-id=Z0GR6EXQHD&x-algolia-api-key=0b1d20b957917dbb5e1c2f3ad1d04ee2"
29 :cache-db-path "./cache/")) ; Location of the cache database. Be sure to include the trailing slash.
31 ; (You can add more than one define-site directive.)
33 ; Maximum size of the cache database.
34 ; On platforms that don't support sparse files, you may want to reduce this
35 ; to conserve disk space. Default is 2^34 or 16GB.
36 (defparameter *lmdb-mapsize* (expt 2 34))
38 ; List of DNSBLs to check before allowing users to log in.
39 ;(defparameter *dnsbl-list* (list "dnsbl.example.com"))
41 ; List of extra resources to include on every page on every site.
42 ;(defparameter *html-global-resources* '())