Hermes is an open-source E-Mail tracking solution that is written in Go. It tracks emails using a tracking pixel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

230 lines
6.7 KiB

4 years ago
  1. ################################################################################
  2. # Revel configuration file
  3. # More info at http://revel.github.io/manual/appconf.html
  4. ################################################################################
  5. # Revel build section
  6. # This section contains values that are not reloadable
  7. ################################################################################
  8. # Comma delimited list of folders that are included with the package, or build commands
  9. # If you want to not include folders within these ones prefix the folder with a . to make it hidden
  10. package.folders = conf, public, app/views
  11. # Revel reconfigurable section
  12. #
  13. ################################################################################
  14. # Sets `revel.AppName` for use in-app.
  15. # Example:
  16. # `if revel.AppName {...}`
  17. app.name = Hermes
  18. # A secret string which is passed to cryptographically sign the cookie to prevent
  19. # (and detect) user modification.
  20. # Keep this string secret or users will be able to inject arbitrary cookie values
  21. # into your application
  22. app.secret = OCwYWacSKgnxWBDsjECJwxFbLDqqLDFqVeTXFzBj9b7eMjQcRr70jqADvsQYmEta
  23. # Revel running behind proxy like nginx, haproxy, etc.
  24. app.behind.proxy = true
  25. # The IP address on which to listen.
  26. http.addr = 0.0.0.0
  27. # The port on which to listen.
  28. http.port = 9000
  29. # Whether to use SSL or not.
  30. http.ssl = false
  31. # Path to an X509 certificate file, if using SSL.
  32. #http.sslcert =
  33. # Path to an X509 certificate key, if using SSL.
  34. #http.sslkey =
  35. # Timeout specifies a time limit for request (in seconds) made by a single client.
  36. # A Timeout of zero means no timeout.
  37. http.timeout.read = 90
  38. http.timeout.write = 60
  39. # For any cookies set by Revel (Session,Flash,Error) these properties will set
  40. # the fields of:
  41. # http://golang.org/pkg/net/http/#Cookie
  42. #
  43. # Each cookie set by Revel is prefixed with this string.
  44. cookie.prefix = REVEL
  45. # A secure cookie has the secure attribute enabled and is only used via HTTPS,
  46. # ensuring that the cookie is always encrypted when transmitting from client to
  47. # server. This makes the cookie less likely to be exposed to cookie theft via
  48. # eavesdropping.
  49. #
  50. # Defaults to false. If 'http.ssl' is enabled, this will be defaulted to true.
  51. # This should only be true when Revel is handling SSL connections. If you are
  52. # using a proxy in front of revel (Nginx, Apache, etc), then this should be left
  53. # as false.
  54. # cookie.secure = false
  55. # Limit cookie access to a given domain.
  56. #cookie.domain =
  57. # Define when your session cookie expires.
  58. # Values:
  59. # "720h"
  60. # A time duration (http://golang.org/pkg/time/#ParseDuration) after which
  61. # the cookie expires and the session is invalid.
  62. # "session"
  63. # Sets a session cookie which invalidates the session when the user close
  64. # the browser.
  65. session.expires = 720h
  66. # The date format used by Revel. Possible formats defined by the Go `time`
  67. # package (http://golang.org/pkg/time/#Parse)
  68. format.date = 2006-01-02
  69. format.datetime = 2006-01-02 15:04
  70. # Determines whether the template rendering should use chunked encoding.
  71. # Chunked encoding can decrease the time to first byte on the client side by
  72. # sending data before the entire template has been fully rendered.
  73. results.chunked = false
  74. # Compression of your HTML and CSS files with gzip typically saves around
  75. # fifty to seventy percent of the file size. This means that it takes less
  76. # time to load your pages, and less bandwidth is used over all.
  77. # To enable compression, set value to true.
  78. results.compressed = false
  79. # The default language of this application.
  80. i18n.default_language = en
  81. # The default format when message is missing.
  82. # The original message shows in %s
  83. #i18n.unknown_format = "??? %s ???"
  84. # Module to serve static content such as CSS, JavaScript and Media files
  85. # Allows Routes like this:
  86. # `Static.ServeModule("modulename","public")`
  87. module.static = github.com/revel/modules/static
  88. ################################################################################
  89. # Section: dev
  90. # This section is evaluated when running Revel in dev mode. Like so:
  91. # `revel run path/to/myapp`
  92. [dev]
  93. # This sets `revel.DevMode` for use in-app.
  94. # Example:
  95. # `if revel.DevMode {...}`
  96. # or in your templates with
  97. # ``
  98. # Values:
  99. # "true"
  100. # Sets `DevMode` to `true`.
  101. # "false"
  102. # Sets `DevMode` to `false`.
  103. mode.dev = true
  104. # Pretty print JSON/XML when calling RenderJSON/RenderXML
  105. # Values:
  106. # "true"
  107. # Enables pretty printing.
  108. # "false"
  109. # Disables pretty printing.
  110. results.pretty = true
  111. # Watch your applicaton files for changes and automatically rebuild
  112. # Values:
  113. # "true"
  114. # Enables auto rebuilding.
  115. # "false"
  116. # Disables auto rebuilding.
  117. watch = true
  118. # Define when to rebuild new changes.
  119. # Values:
  120. # "normal"
  121. # Rebuild when a new request is received and changes have been detected.
  122. # "eager"
  123. # Rebuild as soon as changes are detected.
  124. watch.mode = eager
  125. # Watch the entire `$GOPATH` for changes.
  126. # Values:
  127. # "true"
  128. # Includes `$GOPATH` in watch path.
  129. # "false"
  130. # Excludes `$GOPATH` from watch path. Default value.
  131. #watch.gopath = true
  132. # Module to run code tests in the browser
  133. # See:
  134. # http://revel.github.io/manual/testing.html
  135. module.testrunner = github.com/revel/modules/testrunner
  136. # Where to log the various Revel logs
  137. # Values:
  138. # "off"
  139. # Disable log output.
  140. # "stdout"
  141. # Log to OS's standard output.
  142. # "stderr"
  143. # Log to Os's standard error output. Default value.
  144. # "relative/path/to/log"
  145. # Log to file.
  146. log.all.filter.module.app = stdout # Log all loggers for the application to the stdout
  147. log.error.nfilter.module.app = stderr # Everything else that logs an error to stderr
  148. log.crit.output = stderr # Everything that logs something as critical goes to this
  149. # Revel request access log
  150. # Access log line format:
  151. # INFO 21:53:55 static server-engine.go:169: Request Stats ip=127.0.0.1 path=/public/vendors/datatables.net-buttons/js/buttons.html5.min.js method=GET start=2017/08/31 21:53:55 status=200 duration_seconds=0.0002583 section=requestlog
  152. log.request.output = stdout
  153. ################################################################################
  154. # Section: prod
  155. # This section is evaluated when running Revel in production mode. Like so:
  156. # `revel run path/to/myapp prod`
  157. # See:
  158. # [dev] section for documentation of the various settings
  159. [prod]
  160. mode.dev = false
  161. results.pretty = false
  162. watch = false
  163. module.testrunner =
  164. log.warn.output = log/%(app.name)s-warn.json # Log all warn messages to file
  165. log.error.output = log/%(app.name)s-error.json # Log all errors to file
  166. log.crit.output = log/%(app.name)s-critical.json # Log all critical to file
  167. # Revel request access log (json format)
  168. # Example:
  169. # log.request.output = %(app.name)s-request.json
  170. log.request.output = log/%(app.name)s-requests.json