gemini.conf 16 KB

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