app.conf.example 8.35 KB
Newer Older
zauberstuhl's avatar
zauberstuhl committed
1 2 3
[ganggo]

# Over which protocol will the webpage be served
4
proto = "http://"
zauberstuhl's avatar
zauberstuhl committed
5
# This should be set to your TLD e.g. example.com or example.com:8080
6
address = "localhost:9000"
zauberstuhl's avatar
zauberstuhl committed
7 8 9 10 11 12 13 14 15

# Configure your database access and driver
# Possible database driver are:
#  - mssql
#  - mysql
#  - postgres
#  - sqlite
#
db.driver = "postgres"
16 17
db.user = "postgres"
db.password = ""
zauberstuhl's avatar
zauberstuhl committed
18
db.host = "postgres"
zauberstuhl's avatar
zauberstuhl committed
19
db.database = "ganggo"
20
# mysql
zauberstuhl's avatar
zauberstuhl committed
21
#db.dsn = "%s:%s@tcp(%s)/%s?parseTime=true"
22
# postgres
zauberstuhl's avatar
zauberstuhl committed
23
db.dsn = "postgres://%s:%s@%s/%s?sslmode=disable"
24

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
# Configure a smtp server for mail notifications
mail.enabled = false
mail.host = "localhost"
mail.port = 25
mail.insecure = false
mail.username = "ganggo@localhost"
mail.password = ""
mail.from = "ganggo@localhost"

# Send notifications via Telegram
# see https://core.telegram.org/bots#botfather for creating a Telegram token/id
telegram.enabled = false
telegram.botid = "gggsocialbot"
telegram.token = ""

40 41 42 43 44 45 46 47 48 49 50 51 52
# The relay is disabled on default
# in respect of privacy matters
#
# You should think about enabling it! The software
# will register at the-federation.info and start
# using the social-relay. After using it you will
# benefit from public posts and comments from the
# relay and fill your pod up more quicklier then
# just using the diaspora protocol
relay.subscribe = false
# valid options for scope would be "all" or "tags"
#relay.scope = "all"
# This option is obsolete if you specified "all" in "relay.scope"
53
#relay.tags = "social,network,politics"
54 55
# DO NOT touch unless you know exactly what you are doing
#relay.endpoint = "https://the-federation.info/register/%s"
zauberstuhl's avatar
zauberstuhl committed
56 57 58 59 60 61 62

[DEFAULT]

# This sets the `AppName` variable which can be used in your code as
#   `if revel.AppName {...}`
app.name = ganggo

zauberstuhl's avatar
zauberstuhl committed
63 64
app.version = 0.0.1

zauberstuhl's avatar
zauberstuhl committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
# A secret string which is passed to cryptographically sign the cookie to prevent
# (and detect) user modification.
# Keep this string secret or users will be able to inject arbitrary cookie values
# into your application
app.secret = MQvKMIe2aW8nDOwzNO4srCsPpKeMvh0R2uxnv88MI8mtaj6xrla7QFj1jSACf3Ch

# Revel running behind proxy like nginx, haproxy, etc
app.behind.proxy = false

# The IP address on which to listen.
http.addr = 127.0.0.1
# The port on which to listen.
http.port = 9000
# Whether to use SSL or not.
http.ssl = false
# Path to an X509 certificate file, if using SSL.
#http.sslcert =
# Path to an X509 certificate key, if using SSL.
#http.sslkey =

# For any cookies set by Revel (Session,Flash,Error) these properties will set
# the fields of:
# http://golang.org/pkg/net/http/#Cookie
#
# Each cookie set by Revel is prefixed with this string.
cookie.prefix = REVEL

# A secure cookie has the secure attribute enabled and is only used via HTTPS,
# ensuring that the cookie is always encrypted when transmitting from client to
# server. This makes the cookie less likely to be exposed to cookie theft via
# eavesdropping.
#
# In dev mode, this will default to false, otherwise it will
# default to true.
# cookie.secure = false

# Limit cookie access to a given domain
#cookie.domain =

# Define when your session cookie expires. Possible values:
# "720h"
#   A time duration (http://golang.org/pkg/time/#ParseDuration) after which
#   the cookie expires and the session is invalid.
# "session"
#   Sets a session cookie which invalidates the session when the user close
#   the browser.
session.expires = 720h

# The date format used by Revel. Possible formats defined by the Go `time`
# package (http://golang.org/pkg/time/#Parse)
format.date     = 2006-01-02
format.datetime = 2006-01-02 15:04

# Timeout specifies a time limit for request (in seconds) made by a single client.
# A Timeout of zero means no timeout.
timeout.read = 90
timeout.write = 60

# Determines whether the template rendering should use chunked encoding.
# Chunked encoding can decrease the time to first byte on the client side by
# sending data before the entire template has been fully rendered.
results.chunked = false

# Prefixes for each log message line
# User can override these prefix values within any section
# For e.g: [dev], [prod], etc
log.trace.prefix = "TRACE "
log.info.prefix  = "INFO  "
log.warn.prefix  = "WARN  "
log.error.prefix = "ERROR "

# The default language of this application.
i18n.default_language = en

# The default format when message is missing.
# The original message shows in %s
141
i18n.unknown_format = "Translation missing: %s"
zauberstuhl's avatar
zauberstuhl committed
142 143 144 145 146 147

# Module to serve static content such as CSS, JavaScript and Media files
# Allows Routes like this:
#  `Static.ServeModule("modulename","public")`
module.static=github.com/revel/modules/static

148 149 150
# Module to serve a restful API
# Adds Routes like this:
#   /api/v1/...
zauberstuhl's avatar
zauberstuhl committed
151
module.api=git.feneas.org/ganggo/api
152

153 154 155 156 157 158 159
# Module enables performing tasks
# asynchronously, outside of the request flow.
module.jobs=github.com/revel/modules/jobs

# The number of jobs allowed to run simultaneously
jobs.pool=20

zauberstuhl's avatar
zauberstuhl committed
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
################################################################################
# Section: dev
# This section is evaluated when running Revel in dev mode. Like so:
#   `revel run path/to/myapp`
[dev]
# This sets `DevMode` variable to `true` which can be used in your code as
#   `if revel.DevMode {...}`
#   or in your templates with
#   `<no value>`
mode.dev = true

# Pretty print JSON/XML when calling RenderJson/RenderXml
results.pretty = true

# Automatically watches your applicaton files and recompiles on-demand
watch = true

# If you set watch.mode = "eager", the server starts to recompile
# your application every time your application's files change.
watch.mode = "normal"

# Watch the entire $GOPATH for code changes. Default is false.
#watch.gopath = true

# Module to run code tests in the browser
# See:
#   http://revel.github.io/manual/testing.html
module.testrunner = github.com/revel/modules/testrunner

# Where to log the various Revel logs
log.trace.output = stderr
log.info.output  = stderr
log.warn.output  = stderr
log.error.output = stderr

# Revel log flags. Possible flags defined by the Go `log` package,
# please refer https://golang.org/pkg/log/#pkg-constants
# Go log is "Bits or'ed together to control what's printed"
# Examples:
#   0  => just log the message, turn off the flags
#   3  => log.LstdFlags (log.Ldate|log.Ltime)
#   19 => log.Ldate|log.Ltime|log.Lshortfile
#   23 => log.Ldate|log.Ltime|log.Lmicroseconds|log.Lshortfile
log.trace.flags = 19
log.info.flags  = 19
log.warn.flags  = 19
log.error.flags = 19

# Revel request access log
# Access log line format:
# RequestStartTime ClientIP ResponseStatus RequestLatency HTTPMethod URLPath
# Sample format:
# 2016/05/25 17:46:37.112 127.0.0.1 200  270.157µs GET /
log.request.output = stderr

################################################################################
# Section: prod
# This section is evaluated when running Revel in production mode. Like so:
#   `revel run path/to/myapp prod`
# See:
#  [dev] section for documentation of the various settings
[prod]
mode.dev = false

results.pretty = false

watch = false

module.testrunner =

log.trace.output = off
log.info.output  = off
log.warn.output  = log/%(app.name)s.log
log.error.output = log/%(app.name)s.log

# Revel log flags. Possible flags defined by the Go `log` package,
# please refer https://golang.org/pkg/log/#pkg-constants
# Go log is "Bits or'ed together to control what's printed"
# Examples:
#   0  => just log the message, turn off the flags
#   3  => log.LstdFlags (log.Ldate|log.Ltime)
#   19 => log.Ldate|log.Ltime|log.Lshortfile
#   23 => log.Ldate|log.Ltime|log.Lmicroseconds|log.Lshortfile
log.trace.flags = 3
log.info.flags  = 3
log.warn.flags  = 3
log.error.flags = 3

# Revel request access log
# Access log line format:
# RequestStartTime ClientIP ResponseStatus RequestLatency HTTPMethod URLPath
# Sample format:
# 2016/05/25 17:46:37.112 127.0.0.1 200  270.157µs GET /
# Example:
#   log.request.output = %(app.name)s-request.log
log.request.output = off
256 257

################################################################################
zauberstuhl's avatar
zauberstuhl committed
258
# Section: ci
259
# This section is dedicated to the continuous integration service only
zauberstuhl's avatar
zauberstuhl committed
260
[ci]
261 262 263 264 265 266 267 268 269 270 271 272 273
mode.dev = true
results.pretty = true
watch = false
module.testrunner = github.com/revel/modules/testrunner
log.trace.output = log/%(app.name)s-travis.log
log.info.output  = log/%(app.name)s-travis.log
log.warn.output  = log/%(app.name)s-travis.log
log.error.output = log/%(app.name)s-travis.log
log.trace.flags = 19
log.info.flags  = 19
log.warn.flags  = 19
log.error.flags = 19
log.request.output = log/%(app.name)s-travis.log