GeminiHello.conf 19 KB

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