forked from orthecreedence/wookie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lisp
30 lines (23 loc) · 1.05 KB
/
config.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(defpackage :wookie-config
(:use :cl)
(:export #:*error-handler*
#:*hide-version*
#:*enabled-plugins*
#:*tmp-file-store*))
(in-package :wookie-config)
(defvar *error-handler* nil
"Wookie installs its own error/event handler to the TCP server it operates on,
but provides *error-handler* as a means to do any further error processing
yourself.
*error-handler* must either be nil, or a lambda/function that takes exactly
one argument.
If *error-handler* is not specified, Wookie re-triggers the error, otherwise
the error is sent to the given handler and no further processing on the error
is done by Wookie.")
(defvar *hide-version* nil
"Boolean specifying whether or not to hide the Wookie version in the Server
header.")
(defvar *enabled-plugins* '(:get :post :multipart :http-var :cookie :directory-router)
"A list of (keyword) names of enabled plugins.")
(defvar *tmp-file-store* (asdf:system-relative-pathname :wookie #p"upload-tmp/")
"Stores the path to where uploads/temporary files go.")