-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbase.conf
More file actions
65 lines (48 loc) · 1.7 KB
/
Copy pathbase.conf
File metadata and controls
65 lines (48 loc) · 1.7 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
memory_limit 300
# --- Incoming Request Headers (from Internet to Twice)
# Tell twice to purge a specific cache element
purge_header x-mark-dirty
# --- Backend Request Headers (from Twice to backend)
# Tell app servers that the response needs to be in TML
twice_header twice
# --- Response Headers (from backend to Twice)
# Tell twice how long to cache and rewrite this reponse
cache_header x-twice-control
# Tell twice which cookies to inlude in the url hash
cookies_header twice-cookies
session_cookie persistent
# --- Backend Resources
#
# Multiple entries can be specified
#backend_webserver localhost:8080
#backend_memcache memcached_host:11211
#backend_viewdb memcachedb_host:21201
#backend_dbname name
#backend_dbhost ip:port
#backend_dbuser user
#backend_dbpass pass
# Use this to override the host field of incoming requests
#rewrite_host www.mydomain.com
# --- Cache Type
# Location of twice cache. All external elements are cached here.
cache_type pythonMemcache
cache_server twice_memcached_host:11211
cache_pool 50
# --- Internationalization
#
# If you appliation renders different versions of the same url based on the
# preferred language of the browser, you will want enable hash_langauge. This
# simply appends the browser's preferred language to the hash.
hash_lang_header no
hash_lang_default en-us
default_host www
# --- Misc
#
# How often should memcache queries be cached?
memcache_purge_interval 30
template_regex <&(.*?)&>
# --- AB testing params
ab_cookie uniq
new_ab_cookie uniqn
abdependency_header x-abdependency
abvalue_header x-abvalue