source: branches/Modular/speedtest/speedtest.sample.cfg@ 433

Last change on this file since 433 was 331, checked in by chronos, 13 years ago
  • Přidáno: Jednoduchý náhradní speedtest.
File size: 4.4 KB
Line 
1###############################################################################
2## Fancy Speed Test - Easily measure your upload and download speeds
3## Home Page: http://www.brandonchecketts.com/speedtest/
4## Author: Brandon Checketts
5## File: speedtest.cfg
6## Version: 1.1
7## Date: 2006-02-06
8## Purpose: configuration file
9##
10## SECURITY WARNING: Your .htaccess file should deny access to this file.
11## Otherwise visitors will be able to read your database username and password
12## by just retrieving this file
13## You should include the following in your .htaccess file
14## <Files *.cfg>
15## Deny From All
16## </files>
17##
18###############################################################################
19
20
21###############################################################################
22## GENERAL SETTINGS
23###############################################################################
24[general]
25
26## The web-accessible directory where the program is installed
27base_url = http://www.brandonchecketts.com/speedtest/
28
29## The full path to the upload.cgi Note: This may not be under
30## the base_url because it needs to be somewhere that perl
31## scripts can run (ie: cgi-bin)
32upload_url = http://www.brandonchecketts.com/speedtest/upload.cgi
33
34## Set the directory where images are saved (end with the closing /)
35image_path = /speedtest/
36
37## Log file to write events to. Make sure your web server can write to
38## this file. Leave blank for no logging
39logfile =
40
41## Set debug to 1 to write detailed notes to the log file
42debug =
43
44## when auto_size is enabled, it will do a quick test (of file sizes
45## specified by initial_kbytes). The initial test will help it to decide an
46## appropriate file size to download for the real test.
47auto_size = 1
48
49## pretty_version enables some javascript to make the graph progress
50## as it's being downloaded. Its possible that on slow machines
51## this may skew the results, so you can set this to 0 to disable
52pretty_version = 1
53
54## Page Title displayed on your pages
55page_title =
56
57## auto_start will go directly from the index page to the download
58## meter. Set to 0 if you want to display a welcome message of
59## some sort. Write your content to welcome.html
60auto_start = 0
61
62## A Regular expression applied to the visitors IP address to
63## specifically allow certian hosts
64allow =
65
66## A Regular expression applied to the visitors IP address to
67## deny certian hosts from using the speed test. The contents of
68## "unallowed.html" will be displayed if the visitor is not allowed
69## to use the test
70disallow =
71
72
73
74###############################################################################
75## UPLOAD SETTINGS
76###############################################################################
77[upload]
78## Maximum number of bytes for upload test
79max_kbytes = 5000
80## Disable the upload test (for example if you cant run a CGI
81skip_upload = 0
82## Number of bytes to upload if not using auto_size
83default_kbytes = 2000
84## Initial number of kbytes to upload if using auto_size
85initial_kbytes = 10
86
87###############################################################################
88## DOWNLOAD SETTINGS
89###############################################################################
90[download]
91## Maximum number of kbytes for download test
92max_kbytes = 4000
93## Number of kbytes to download if not using auto_size
94default_kbytes = 4000
95## Initial number of kbytes to download if using auto_size
96initial_kbytes = 50
97
98
99###############################################################################
100## DATABASE SETTINGS
101###############################################################################
102[database]
103## Set to 1 to enable saving settings to a database
104enable = 0
105## Database Host name (usually localhost)
106host = localhost
107## Database name
108database = dbname
109## Database user name
110user = dbuser
111## Database password
112password = dbpasswd
113## Database table
114table = speedtest
115## Regular expression to match to save results to the database
116ip_matches =
117
118###############################################################################
119## SPEED COMPARISONS SECTION
120## Rates that you want displayed on the comparison's page
121## (all values in kbps)
122###############################################################################
123[comparisons-download]
124Typical Dialup = 28
125Best-case Dialup = 56
126Standard DSL = 256
127T1 = 1581
128Cable = 3072
129Ethernet = 10240
130
131[comparisons-upload]
132Typical Dialup = 28
133Best-case Dialup = 38
134Standard DSL = 256
135Cable = 384
136T1 = 1581
137
Note: See TracBrowser for help on using the repository browser.