gemini-postgres.conf 18 KB

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