This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
dex.conf.sample
186 lines (139 loc) · 5.39 KB
/
dex.conf.sample
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
; Configuration file for a DEX online installation
; Some entire sections are optional. Please refer to each section's comments.
[global]
; Modules that are allowed to run and possibly serve a banner instead of the bannerType choice below.
; These will be invoked in the order they are listed until one of them serves a banner.
; If none of them has a relevant banner, we fall back to bannerType.
; adsModulesH[] = diverta
; adsModulesH[] = someOtherModule
; Type of banner to be served.
; Banner sizes are dictated by the skin. See templates/common/bits/banner.ihtml.
; Choices are "openx", "openx-local", "adsense", "fake" or "none".
; The option "fake" displays a placeholder banner and can be used in development/beta (so as not to steal real impressions from campaigns).
bannerType = fake
; Contact email, sprinkled throughout the site
contact = [email protected]
; Database connection
; database = 'mysql://root:pwd@localhost/mydb'
database = mysql://root@localhost/DEX
; Show some debug information when this user is logged in.
debugUser = reggie
; True on development installations. Mainly used to hide the trafic.ro / Google analytics code
developmentMode = 0
; API key for Google search of clones
googleSearchApiKey = "Insert your API key here"
; Show our web host logo
hostedBy =
; LOC versions (for scrabble users). Each version should have a corresponding LOC_* database.
; See also mysql_loc_prefix
locVersions[] = 4.0 10/09/2007
locVersions[] = 4.1 01/11/2008
locVersions[] = 5.0 01/24/2011
locVersions[] = 6.0 current
; Whether or not to log query-related information
logSearch = 0
; Full name of the log file
logPath = /var/log/dex-query.log
; For each query, log at most this many results
; If set to zero, then log only query information, but not the results
logResults = 0
; Log this fraction of queries, sampled uniformly at random
; Possible values: 0.00 <= logSampling <= 1.00
logSampling = 0.10
; Max number of bookmarks/user
maxBookmarks = 100
; Whether to use the memcached server
memcache = 0
; If this site is a mirror, certain features will be disabled: user login, typo reporting etc.
mirror = 0
; Prefix for the LOC databases.
mysql_loc_prefix = LOC_
; Available skins
skins[] = zepu
skins[] = polar
; This section handles donations through a third party.
[euplatesc]
; Key for euplatesc.ro or 0 to disable the donation box.
euPlatescKey = 0
; Merchant ID for euplatesc.ro or 0 to disable the donation box.
euPlatescMid = 0
; Functional testing. We don't do much of it as of 2013.
[functest]
; URL that the functional test engine will exercise
; This is the URL you normally go to in development
; baseUrl = "http://domain.com/path"
baseUrl = "http://localhost/~user/DEX/wwwbase/"
; Database to use for functional tests.
; Comment this out in production.
functestDatabase = mysql://root@localhost/DEXtest
; Lock file to use for functional tests.
; The testing infrastructure should touch this file at the beginning and delete it at the end.
; DEX online will read functestDatabase instead of database if this file exists.
; Comment this out in production.
functestLockFile = /tmp/dex-functest
; Skin-specific variables. Necessary if you plan to display banners.
[skin-zepu]
; Display banners after the search box.
adsense_mainPage = "id=1220723485&width=728&height=90"
adsense_otherPages = "id=2401834072&width=728&height=90"
openx_mainPage = 216368
openx_otherPages = 201501
openxLocal_mainPage = 1
openxLocal_otherPages = 2
[skin-polar]
; Display banners at the top of every page
adsense_otherSkins = "id=2054526829&width=728&height=90"
openx_otherSkins = 121346
openxLocal_otherSkins = 3
[limits]
limitFulltextSearch = 1000
; Configuration for the Romanian literature crawler
[crawler]
; The as downloaded html page location
raw_page_path = RawPage/
; The pure text page associated with the html one location
parsed_text_path = ParsedText/
; Waiting time between getting pages (per-domain limit)
t_wait = 15
; If true, then the application will exit if an exception occurs
exception_exit = true
; The most probable directory index file
dir_index_file = index
; The most probable index extensions
index_file_ext = html,php,aspx,asp,pl,py,jsp
; Crawler signature
user_agent = "DEX online crawler v1.0"
; Pages to crawl
; whiteList[] = http://example.com/
; whiteList[] = http://example.com/
; Configuration for the app that adds Romanian diacritics to a text that doesn't have them
[diacritics]
diacritics_buffer_limit = 2048
; Diacritics list
diacritics = ăâîșț
; Padding char beyond the end of text
padding_char = *
; Non-diacritics list
non_lower_diacritics = aist
non_upper_diacritics = AIST
; Left and right length; e.g. for cireșarii cire-s-arii the padding_length is 5
diacritics_padding_length = 5
; Logging settings for the crawler and any apps built on top of it
[app_log]
log_detail_level = 2
; Crawler log file path, relative to the root installation directory
crawler_log = log/crawler_log
; Diacritics log file path, relative to the root installation directory
diacritics_log = log/diacritics_log
; When set, outputs messages to the screen
log2screen = true
; when set, outputs messages to the file specified by crawler_log
log2file = true
; settings for WotD error email notifications
[WotD]
sender = [email protected]
reply-to [email protected]
rcpt-info[] = [email protected]
rcpt-info[] = [email protected]
rcpt-error[] = [email protected]
rcpt-error[] = [email protected]