gemini-mysql.conf 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. # -----------------------------------------------------------------------
  2. # GEMINIHELLO configuration file
  3. #
  4. # BASELINE Configuration
  5. #
  6. # This configuration file specifies application default behavior that is
  7. # suitable where not superseded by deployment-specific configuration
  8. # files. Refer to the separate deployment-specific configuration files
  9. # (such as GeminiHello-Dev.conf).
  10. #
  11. # The automatically-generated configuration files align with generic
  12. # deployment "roles" (Development, Test, and Production). It is common
  13. # practice, however, to have additional machine-specific configuration
  14. # files. This allows for configuration attributes to be distributed
  15. # between so that, for example, all development environments can use
  16. # attributes specific in a Development configuration file. For example:
  17. #
  18. # GeminiHello.conf - Baseline configuration
  19. # GeminiHello-Dev.conf - Standard development configuration specifics
  20. # GeminiHello-BLACKPARK.conf - Specifics for a machine named Blackpark.
  21. #
  22. # -----------------------------------------------------------------------
  23. #
  24. # AUTO GENERATED CONFIGURATION FILE NOTICE:
  25. # Search for lines that contain "EDIT THIS" for AUTO-GENERATED items
  26. # that you cam edit for additional functionality.
  27. #
  28. # Notes:
  29. # Lines that begin with # are comments. Empty lines are ignored. Each
  30. # entry in this file is described immediately above the provided value.
  31. #
  32. # Directories must have their back-slashes (\) escaped as \\.
  33. #
  34. # -----------------------------------------------------------------------
  35. #
  36. # STANDARD PROPERTIES
  37. # Gemini provides the following standard properties dynamically at
  38. # runtime, derived from the deployment environment.
  39. #
  40. # All Servlet Initialization Parameters in the following form:
  41. # Servlet.Parameter.(ParamName) = (Value)
  42. #
  43. # All Server Attributes in the following form:
  44. # Servlet.Attribute.(AttribtueName) = (Value)
  45. #
  46. # Servlet.ContextName - The deployment context name for the web-app.
  47. # Servlet.DeploymentRoot - The physical file system location for the
  48. # "document root" of the web-app.
  49. # Servlet.WebInf - The physical file system location of the web-app's
  50. # WEB-INF directory.
  51. # Servlet.MachineName - The discovered machine name of the server.
  52. # Servlet.ApplicationRoot - One directory above the DeploymentRoot.
  53. #
  54. # -----------------------------------------------------------------------
  55. # -----------------------------------------------------------------------
  56. # DEPLOYMENT SETTINGS
  57. # -----------------------------------------------------------------------
  58. # ApplicationRoot
  59. # Specifies the file system root of the application. This value is
  60. # not actually used by Gemini, but is used as a macro in several
  61. # other property values.
  62. ApplicationRoot = ${Servlet.ApplicationRoot}
  63. # DeploymentDescription
  64. # A simple descriptive name or label for this deployment of the
  65. # application (e.g., Production, Test, Development, and so on). This
  66. # description is used to identify the installation in some system-
  67. # generated messages such as exception report e-mails.
  68. DeploymentDescription = Production
  69. # -----------------------------------------------------------------------
  70. # DATABASE SETTINGS
  71. # -----------------------------------------------------------------------
  72. # Connection information can be found in the separate deployment-
  73. # specific configuration files.
  74. # MySQL/ConnectorJ
  75. db.Driver.Class = com.mysql.jdbc.Driver
  76. db.Driver.UrlPrefix = jdbc:mysql://
  77. db.Driver.SupportsAbsolute = yes
  78. db.Driver.SupportsGetRow = yes
  79. db.Driver.Jdbc1 = no
  80. db.ConnectString = TFB-database:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useServerPrepStmts&enableQueryTimeouts=false&useUnbufferedIO=false&useReadAheadInput=false&maintainTimeStats=false&cacheRSMetadata=true&useSSL=false
  81. db.LoginName = benchmarkdbuser
  82. db.LoginPass = benchmarkdbpass
  83. # JTDS (Open source JDBC driver for Microsoft SQL Server)
  84. #db.Driver.Class = org.postgresql.Driver
  85. #db.Driver.UrlPrefix = jdbc:postgresql://
  86. #db.Driver.SupportsAbsolute = yes
  87. #db.Driver.SupportsGetRow = yes
  88. #db.Driver.Jdbc1 = no
  89. # db.Driver.Pooling
  90. # How many Connections to maintain to the database. The default is 1.
  91. # db.Driver.MaxPooling
  92. # How many concurrent Connections to allow at maximum.
  93. db.Driver.Pooling = 256
  94. db.Driver.MaxPooling = 256
  95. # BasicConnectionListener properties
  96. # cl.RetriesOnDisconnect
  97. # How many automatic retries on database connection (socket) failures
  98. # should be made before aborting a query attempt?
  99. cl.RetriesOnDisconnect = 1
  100. # cl.AlertFile
  101. # File to write database connector alerts to.
  102. cl.AlertLogFile = ${ApplicationRoot}/jdbc-alerts.log
  103. # -----------------------------------------------------------------------
  104. # CLUSTER SETTINGS
  105. # -----------------------------------------------------------------------
  106. # The cluster settings are left commented here. Gemini clustering can
  107. # be enabled either (a) by defining cluster connectivity information here
  108. # in a configuration file or (b) by having application instances fetch
  109. # their configuration from the cluster master. In case (b), this
  110. # configuration file won't be used and there's no point in un-commenting
  111. # and modifying the lines below.
  112. #ClusterClient.TransportClassname = com.techempower.gemini.cluster.transport.kryonet.KryoClientTransport
  113. #ClusterClient.Authentication.Key = shared-secret
  114. #Kryo.Client.Host = localhost
  115. #Kryo.Client.TcpPort = 54555
  116. # -----------------------------------------------------------------------
  117. # DIRECTORY SETTINGS
  118. # -----------------------------------------------------------------------
  119. # JSPDirectory
  120. # Specifies the relative URL base for JSP files.
  121. JSPDirectory = /WEB-INF/jsp/
  122. # JSPPhysicalDirectory
  123. # Specifies the physical directory that is referenced by JSPDirectory
  124. # above.
  125. JSPPhysicalDirectory = ${Servlet.WebInf}/jsp/
  126. # HTMLDirectory
  127. # Specifies the relative URL base for HTML files. If HTML files are
  128. # served by a separate host, an asbolute URL base can be specified.
  129. HTMLDirectory = /html/
  130. # ImagesDirectory
  131. # Specifies the relative URL base for image files. If images are
  132. # served by a separate host, an asbolute URL base can be specified.
  133. ImageDirectory = /images/
  134. # CSSDirectory
  135. # Specifies the relative URL base for style sheet files. If CSS
  136. # files are served by a separate host, an asbolute URL base can be
  137. # specified.
  138. CSSDirectory = /css/
  139. # JavaScriptDirectory
  140. # Specifies the relative URL base for JavaScript (.js) files. If
  141. # JS files are served by a separate host, an asbolute URL base can be
  142. # specified.
  143. JavaScriptDirectory = /js/
  144. # ServletURL
  145. # Specifies the relative URL for the dispatcher servlet. For many
  146. # applications, this will be set to the root (just /). This requires
  147. # that the application server direct request to the Servlet only when
  148. # the URL matches the root and the root only. In Resin, the way
  149. # this is accomplished is by setting a Servlet Mapping as below:
  150. # <servlet-mapping url-regexp='^/$' servlet-name='...'/>
  151. ServletURL = /
  152. # -----------------------------------------------------------------------
  153. # LOGGING SETTINGS
  154. # -----------------------------------------------------------------------
  155. # Log.File - Log file settings
  156. # Log.File.On
  157. # Enables or disables logging to log files.
  158. # Log.Console.On
  159. # Enables or disables logging to the console.
  160. Log.File.On = no
  161. Log.Console.On = yes
  162. # Log.File.LogDirectory
  163. # Specifies the directory to which logfiles should be written. By
  164. # default this is just a subdirectory named "logs" off of whatever
  165. # is the active directory. The directory must exist for the log files
  166. # to work.
  167. Log.File.LogDirectory = ${ApplicationRoot}/Logs/
  168. # Log.File.LogDebugThreshold -and-
  169. # Log.Console.LogDebugThreshold
  170. # Specify the minimum log level (0 to 100, inclusive) to require for
  171. # writing items to this log listener.
  172. #
  173. # 20 is recommended to start out.
  174. Log.File.LogDebugThreshold = 20
  175. Log.Console.LogDebugThreshold = 20
  176. # -----------------------------------------------------------------------
  177. # IP/DNS/URL SETTINGS
  178. # -----------------------------------------------------------------------
  179. # StandardDomain
  180. # Species the URL base for the standard (non-secure) domain name.
  181. # This should not end with a trailing /, which would otherwise be
  182. # standard practice.
  183. # TODO: EDIT THIS
  184. StandardDomain = http://${Servlet.MachineName}
  185. # SecureDomain
  186. # Specifies the URL base for the secure (SSL) domain name.
  187. # This should not end with a trailing /, which would otherwise be
  188. # standard practice.
  189. # TODO: EDIT THIS
  190. SecureDomain = https://${Servlet.MachineName}
  191. # -----------------------------------------------------------------------
  192. # LOGIN HANDLER
  193. # -----------------------------------------------------------------------
  194. # LoginHandler.CmdLogin
  195. # The command to recognize for the login page (default: "login"). The
  196. # login page can be invoked directly via this command or via a peer
  197. # Handler, such as subclasses of SecureHandler.
  198. LoginHandler.CmdLogin = login
  199. # LoginHandler.CmdLogout
  200. # The command to recognize for logout requests. The default is
  201. # "logout".
  202. LoginHandler.CmdLogout = logout
  203. # LoginHandler.CmdPostLogin
  204. # The command to redispatch to after a successful login. This command
  205. # will only be used if a prior request was not preempted by a forced
  206. # login. The default is "home".
  207. LoginHandler.CmdPostLogin = home
  208. # LoginHandler.JspLogin
  209. # The JSP page name to use for rendering the login form. The default
  210. # is "login.jsp" within the root of your application's JSP directory.
  211. LoginHandler.JspLogin = accounts/login.jsp
  212. # LoginHandler.JspLogout
  213. # The JSP page name to use for rendering the logout screen. The default
  214. # is "logout.jsp" within the root of your application's JSP directory.
  215. LoginHandler.JspLogout = accounts/logout.jsp
  216. # LoginHandler.CookieNameSuffix - You can change the suffix of the cookie
  217. # name used to save automatic login credentials. The default is
  218. # "-automatic-login".
  219. LoginHandler.CookieNameSuffix = -automatic-login
  220. # LoginHandler.LogoutDeletesCookie
  221. # Delete automatic login cookie after logout.
  222. LoginHandler.LogoutDeletesCookie = yes
  223. # LoginHandler.EmailTemplateName
  224. # You can change the template name of the e-mail used to send a user a
  225. # replacement password (in the event that they forget their current
  226. # password). The default template name is "E-NewPassword".
  227. LoginHandler.EmailTemplateName = E-NewPassword
  228. # LoginHandler.FailedAttemptLimit
  229. # Limits the number of sequential failed attempts before an IP address
  230. # cannot make any further login attempts (until a timeout period has
  231. # expired).
  232. LoginHandler.FailedAttemptLimit = 25
  233. # LoginHandler.FailedResetSeconds
  234. # An interval of time after which an IP address that had been blocked
  235. # will be permitted to login again.
  236. LoginHandler.FailedResetSeconds = 60
  237. # -----------------------------------------------------------------------
  238. # STANDARD ADMIN SETTINGS
  239. # -----------------------------------------------------------------------
  240. # Admin.RelativeJspPath
  241. # Specifies the relative path to JSP files for the Admin section.
  242. Admin.RelativeJspPath = admin/
  243. # Admin.ScratchEnabled
  244. # Should the admin section allow the execution of arbitrary JSP
  245. # fragments?
  246. Admin.ScratchEnabled = no
  247. # Admin.ScratchIP
  248. # If scratches are enabled, from what IPs are they permitted?
  249. Admin.ScratchIP = 127.0.0.1,172.16.98.14
  250. # -----------------------------------------------------------------------
  251. # PYXIS USERS AND GROUPS SETTINGS
  252. # -----------------------------------------------------------------------
  253. # Pyxis.UsersTable
  254. # The name of the Users table for this database.
  255. Pyxis.UsersTable = GhUsers
  256. # Pyxis.GroupsTable
  257. # The name of the Groups table for this database.
  258. Pyxis.GroupsTable = GhGroups
  259. # Pyxis.UsersToGroupsTable
  260. # The name of the table mapping Users to Groups for this database.
  261. Pyxis.UsersToGroupsTable = MapUserToGroup
  262. # BasicSecurity.PasswordCryptographer
  263. # Specifies the fully-qualified classname of a PasswordCryptographer
  264. # implementation that can hash user passwords. A common implementation
  265. # is com.techempower.security.BCryptPasswordCryptographer.
  266. BasicSecurity.PasswordCryptographer = com.techempower.security.BCryptPasswordCryptographer
  267. # -----------------------------------------------------------------------
  268. # JSP PRECOMPILATION (optional; not enabled in this auto-generated file)
  269. # -----------------------------------------------------------------------
  270. # Precomp.Group1
  271. # Defines a comma-separated list of directories (relative URLs) that
  272. # contain JSP files (relative to the JSPDirectory). Multiple groups
  273. # can be defined as Group2; Group3; etc.
  274. # ex. Precomp.Group1 = /,/includes/,/admin/
  275. #Precomp.Group1 = /
  276. # Precomp.AuthorizedIP
  277. # An IP address that is authorized to invoke the Precompilation
  278. # process.
  279. #Precomp.AuthorizedIP = 65.115.126.13
  280. # -----------------------------------------------------------------------
  281. # MAIL SETTINGS
  282. # -----------------------------------------------------------------------
  283. # MailServerCount
  284. # The number of mail servers to use in fail-over. If no fail-over is
  285. # used, this should be 1.
  286. MailServerCount = 1
  287. # EmailerThreadsDaemon
  288. # Set to no to force e-mail servicer threads to completely deliver their
  289. # queues even when the application stops. Set to yes to allow threads
  290. # to stop immediately when the application stops, resulting in the
  291. # possibility of undelivered e-mails.
  292. EmailerThreadsDaemon = yes
  293. # Mail Server blocks (where 'X' is a sequential ID of the mail servers
  294. # used by the application).
  295. #
  296. # MailServerX.ServerAddress
  297. # Specify each mail server's DNS name or IP address. Make sure the
  298. # mail server will relay e-mail for this application.
  299. # MailServerX.SmtpPort
  300. # Specify an SMTP port number if used for Outbound mail.
  301. # MailServerX.PopPort
  302. # Specify a POP3 port number if used for Inbound mail.
  303. # MailServerX.Username
  304. # Used if an SMTP username is required to send or receive mail
  305. # MailServerX.Password
  306. # The password for the user specified above
  307. # MailServerX.Role
  308. # Outbound, Inbound, or Both
  309. # No mail servers specified in baseline configuration. See environment-
  310. # specific configuration files.
  311. #MailServer1.ServerAddress = mail.techempower.com
  312. #MailServer1.SmtpPort = 25
  313. #MailServer1.Username = username
  314. #MailServer1.Password = password
  315. #MailServer1.ServerRole = Outbound
  316. # FromEmailAddress
  317. # The e-mail address to use as an "author" when sending e-mails.
  318. FromEmailAddress = [email protected]
  319. # -----------------------------------------------------------------------
  320. # ERROR HANDLING SETTINGS
  321. # -----------------------------------------------------------------------
  322. # Should exceptions caught by the Gemini infrastructure while handling
  323. # web requests be written to the log file?
  324. BasicExceptionHandler.LogExceptions = yes
  325. BasicExceptionHandler.LogStackTraces = yes
  326. # Should the stack trace of exceptions caught by the Gemini
  327. # Infrastructure be clearly visible to users? This is generally
  328. # acceptable only in a development environment. In a Production
  329. # environment, set this value to 'no'. Stack traces will still be
  330. # visible within the HTML source sent to the client.
  331. BasicExceptionHandler.RevealStackTrace = no
  332. # BasicExceptionHandler.ErrorPage
  333. # Specifies the filename of the error page that should be rendered
  334. # to display an exception. If empty, the internal "page" will be
  335. # used.
  336. BasicExceptionHandler.ErrorPage = error-page.jsp
  337. # Feature.exc-email
  338. # (Formerly EmailExceptionHandler.Enabled)
  339. # The EmailExceptionHandler can be enabled or disabled.
  340. Feature.exc-email = false
  341. # EmailExceptionHandler.ToEmailAddress
  342. # The e-mail address to which to send exception reports.
  343. EmailExceptionHandler.ToEmailAddress = [email protected]
  344. # EmailExceptionHandler.FromEmailAddress
  345. # The e-mail address from which to send exception reports.
  346. EmailExceptionHandler.FromEmailAddress = [email protected]
  347. # EmailExceptionHandler.MinimumInterval
  348. # The minimum number of seconds that must pass since the previous
  349. # exception report in order to allow another report to be sent. This
  350. # helps mitigate an avalanche of reports from a critical error. The
  351. # interval is specified in seconds. A good default is 600 (10
  352. # minutes).
  353. EmailExceptionHandler.MinimumInterval = 600
  354. # -----------------------------------------------------------------------
  355. # MISCELLANEOUS SETTINGS
  356. # -----------------------------------------------------------------------
  357. # Character encoding settings
  358. #
  359. # Encoding.RequestCharset
  360. # What character encoding are we expecting for requests?
  361. # Encoding.ResponseType
  362. # The full MIME-Type name for responses.
  363. Encoding.RequestCharset = UTF-8
  364. Encoding.ResponseType = text/html;charset=utf-8
  365. # RequestCounting
  366. # Specifies that requests should be counted and that threads
  367. # processing requests should be assigned names that include the
  368. # request ID number for the scope of the request.
  369. RequestCounting = yes
  370. # SchedulerSleepSeconds
  371. # Seconds to sleep between scheduler checks.
  372. SchedulerSleepSeconds = 10
  373. # SessionTimeout
  374. # Sets the number of seconds before a session should time out on
  375. # the web site.
  376. SessionTimeout = 3600
  377. # SessionTracking
  378. # If enabled, sessions will be tracked. This allows the application
  379. # to get a count of active sessions.
  380. SessionTracking = Yes
  381. # ThreadDump.DumpOnStopLocation
  382. # Specifies a file system location to write thread dump text files
  383. # when the application is unloaded by the application server (such
  384. # as when the server stops).
  385. ThreadDump.DumpOnStopLocation = ${ApplicationRoot}/Thread Dumps/
  386. # Robots.File
  387. # Specifies the file that should be returned when /robots.txt is
  388. # requested. See hello.home.RobotsHandler.
  389. Robots.File = ${Servlet.WebInf}/robots-disallowed.txt
  390. # Feature.monitor
  391. # Set to yes to enable performance monitoring
  392. Feature.monitor = no