sample llr-serverconfig.txt for personal Proxy
Change stuff in BOLD
-------------------
-- general settings
-------------------
-- server name
-- used in particular to identify the server into the sql stats table
-- (change this name if you have several servers using the same sql database)
serverName = "Free-DC_IronBits"
-- port that the server listen to (make sure clients are configured
-- with the same number)
port = 100
-- maximum number of concurrent connections
maxConnections = 15
-- maximum allowed time for a user to complete a job (in seconds)
jobMaxTime = 14 * 24 * 3600 -- 14 days
-- various files used by the server
knPairsFile = "knpairs.txt"
jobListFile = "joblist.txt"
resultsFile = "results.txt"
-- if you want the server to regularly prune your knpairs and joblist
-- files, then uncomment the following line and set the period of
-- pruning in second.
prunePeriod = 1 * 24 * 3600 -- every days
-- (for gurus only)
if WIN32 then
no_shell = 1
end
-- format used to display numbers in result file
-- (uncomment the appropriate line)
--displayFormat = "%s*2^%s+1" -- use this for PRP type test
--displayFormat = "%s*2^%s-1" -- use this for LLR type test (default)
-- uncomment the following line to remove username check when
-- accepting a new result
noUserCheck = 1
-- you can customize the way the date is displayed
-- (in joblist.txt and results.txt)
--function DisplayDate()
-- return date("%d/%m/%Y\ %r")
--end
-----------------
-- PROXY settings
-----------------
-- uncomment the following line to make this server a proxy server
proxy = 1
-- address of the parent server
proxyMasterAddress = "CRUS.dynip.telepac.pt"
proxyMasterPort = 100
-- name of this proxy (change 'nobody' to something else)
proxyName = "Free-DC_IronBits"
-- size of the proxy cache
proxyCacheSize = 200
-- minimum number of results to send back to the main server
-- at a time
proxyTosendThreshold = 25
-- name of the tosend file of the proxy
tosendFile = "tosend-proxy.txt"
-----------------
-- User CALLBACKS
-----------------
-- below is an example of callback to log all primes as they are
-- found into an additional file
--function OnPrime(t, k, n, job)
-- local fileprime = openfile("primes.txt", "a")
-- if fileprime then
-- write(fileprime, format("[%s]\n", job.resultdate))
-- write(fileprime, format(displayFormat.." is prime! Time : %d.0 sec.\n",
-- k, n,
-- Seconds() - job.seconds))
-- closefile(fileprime)
-- end
--end
-- similarly, you can have another callback called OnResult,
-- beware that it takes one additional argument (the residue)
--function OnResult(t, k, n, residue, job)
-- insert whatever you want here
--end
------------------------------------------
-- SQL settings (mySql only at the moment)
------------------------------------------
-- uncomment the line below to use SQL
--sqlUsed = 1
-- sql general configuration
sqlServer = "localhost"
--sqlServerPort = 4000
sqlDriver = "mysql"
sqlUser = "llrnet"
sqlPassword = "llrnet"
sqlDbName = "llrnet"
-----------------
-- SQL user table
-----------------
-- uncomment the line below and set the name of the table of users
--sqlUsersTable = "users"
-- name of the fields containing the username and the password
sqlUsernameEntry= "username"
sqlPasswordEntry= "password"
------------------------
-- SQL pairs and results
------------------------
-- uncomment the line below and set the name of the tables
--sqlPairsTable = "pairs"
sqlJobsTable = "jobs"
sqlResultsTable = "results"
sqlRejectedTable= "rejected"
------------
-- SQL stats
------------
-- uncomment the line below to allow llrnet server statistics and infos
-- to be regularly updated into the given sql table
--sqlStatsTable = "stats"
--------------------------
-- WIN32 specific settings
--------------------------
-- uncomment the line below to hide the tray icon on startup
--hideTrayIcon = 1
-- change this value if you want to run several client as services
serviceName = "NPLB_LLRserver"
-- under WIN32 platform, uncomment the following line to log stdout and stderr
-- to a file called "stdout.txt"
--logOutput = 1