1 ################################################################################
2 # Revel configuration file
3 # More info at http://revel.github.io/manual/appconf.html
4 ################################################################################
7 # This section contains values that are not reloadable
8 ################################################################################
10 # Comma delimited list of folders that are included with the package, or build commands
11 # If you want to not include folders within these ones prefix the folder with a . to make it hidden
12 package.folders = conf, public, app/views
17 # Revel reconfigurable section
19 ################################################################################
22 # Sets `revel.AppName` for use in-app.
24 # `if revel.AppName {...}`
27 # A secret string which is passed to cryptographically sign the cookie to prevent
28 # (and detect) user modification.
29 # Keep this string secret or users will be able to inject arbitrary cookie values
30 # into your application
31 app.secret = yoo6J6K8SOzbK4Mqe5t1RTT4k3R9chrkWgDpvs7iQv8rnusRdbgtgqpeO13NRejj
33 # Revel running behind proxy like nginx, haproxy, etc.
34 app.behind.proxy = false
37 # The IP address on which to listen.
40 # The port on which to listen.
43 # Whether to use SSL or not.
46 # Path to an X509 certificate file, if using SSL.
49 # Path to an X509 certificate key, if using SSL.
53 # Timeout specifies a time limit for request (in seconds) made by a single client.
54 # A Timeout of zero means no timeout.
55 http.timeout.read = 90
56 http.timeout.write = 60
59 # For any cookies set by Revel (Session,Flash,Error) these properties will set
61 # http://golang.org/pkg/net/http/#Cookie
63 # Each cookie set by Revel is prefixed with this string.
66 # A secure cookie has the secure attribute enabled and is only used via HTTPS,
67 # ensuring that the cookie is always encrypted when transmitting from client to
68 # server. This makes the cookie less likely to be exposed to cookie theft via
71 # Defaults to false. If 'http.ssl' is enabled, this will be defaulted to true.
72 # This should only be true when Revel is handling SSL connections. If you are
73 # using a proxy in front of revel (Nginx, Apache, etc), then this should be left
75 # cookie.secure = false
77 # Limit cookie access to a given domain.
80 # Define when your session cookie expires.
83 # A time duration (http://golang.org/pkg/time/#ParseDuration) after which
84 # the cookie expires and the session is invalid.
86 # Sets a session cookie which invalidates the session when the user close
88 session.expires = 720h
91 # The date format used by Revel. Possible formats defined by the Go `time`
92 # package (http://golang.org/pkg/time/#Parse)
93 format.date = 2006-01-02
94 format.datetime = 2006-01-02 15:04
97 # Determines whether the template rendering should use chunked encoding.
98 # Chunked encoding can decrease the time to first byte on the client side by
99 # sending data before the entire template has been fully rendered.
100 results.chunked = false
102 # Compression of your HTML and CSS files with gzip typically saves around
103 # fifty to seventy percent of the file size. This means that it takes less
104 # time to load your pages, and less bandwidth is used over all.
105 # To enable compression, set value to true.
106 results.compressed = false
110 # The default language of this application.
111 i18n.default_language = en
113 # The default format when message is missing.
114 # The original message shows in %s
115 #i18n.unknown_format = "??? %s ???"
118 # Module to serve static content such as CSS, JavaScript and Media files
119 # Allows Routes like this:
120 # `Static.ServeModule("modulename","public")`
121 module.static = github.com/revel/modules/static
125 ################################################################################
128 # This section is evaluated when running Revel in dev mode. Like so:
129 # `revel run path/to/myapp`
132 # This sets `revel.DevMode` for use in-app.
134 # `if revel.DevMode {...}`
135 # or in your templates with
139 # Sets `DevMode` to `true`.
141 # Sets `DevMode` to `false`.
145 # Pretty print JSON/XML when calling RenderJSON/RenderXML
148 # Enables pretty printing.
150 # Disables pretty printing.
151 results.pretty = true
154 # Watch your applicaton files for changes and automatically rebuild
157 # Enables auto rebuilding.
159 # Disables auto rebuilding.
163 # Define when to rebuild new changes.
166 # Rebuild when a new request is received and changes have been detected.
168 # Rebuild as soon as changes are detected.
171 # Watch the entire `$GOPATH` for changes.
174 # Includes `$GOPATH` in watch path.
176 # Excludes `$GOPATH` from watch path. Default value.
180 # Module to run code tests in the browser
182 # http://revel.github.io/manual/testing.html
183 module.testrunner = github.com/revel/modules/testrunner
186 # Where to log the various Revel logs
189 # Disable log output.
191 # Log to OS's standard output.
193 # Log to Os's standard error output. Default value.
194 # "relative/path/to/log"
196 log.all.filter.module.app = stdout # Log all loggers for the application to the stdout
197 log.error.nfilter.module.app = stderr # Everything else that logs an error to stderr
198 log.crit.output = stderr # Everything that logs something as critical goes to this
200 # Revel request access log
201 # Access log line format:
202 # 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
203 log.request.output = stdout
207 ################################################################################
209 # This section is evaluated when running Revel in production mode. Like so:
210 # `revel run path/to/myapp prod`
212 # [dev] section for documentation of the various settings
217 results.pretty = false
223 log.warn.output = log/%(app.name)s-warn.json # Log all warn messages to file
224 log.error.output = log/%(app.name)s-error.json # Log all errors to file
225 log.crit.output = log/%(app.name)s-critical.json # Log all critical to file
227 # Revel request access log (json format)
229 # log.request.output = %(app.name)s-request.json
230 log.request.output = log/%(app.name)s-requests.json