summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorHorus_Arch2015-02-14 23:11:57 +0100
committerHorus_Arch2015-02-14 23:11:57 +0100
commit2f9fe2cfad83416647beed9c3c9085d686c43b09 (patch)
treefce1e043672f94cf42f8197079ce6fb3017dade0 /conf
downloadfreemail-2f9fe2cfad83416647beed9c3c9085d686c43b09.tar.gz
Initial commit.
Diffstat (limited to 'conf')
-rw-r--r--conf/app.conf158
-rw-r--r--conf/routes28
2 files changed, 186 insertions, 0 deletions
diff --git a/conf/app.conf b/conf/app.conf
new file mode 100644
index 0000000..f04c963
--- /dev/null
+++ b/conf/app.conf
@@ -0,0 +1,158 @@
+################################################################################
+# Revel configuration file
+# See:
+# http://revel.github.io/manual/appconf.html
+# for more detailed documentation.
+################################################################################
+
+# This sets the `AppName` variable which can be used in your code as
+# `if revel.AppName {...}`
+app.name = freemail
+
+# 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 = xXc57Q4O8qsH7h0JAnMzS0jE9dPIo59zTcR9TQcxiklZPUH9y4mN6AAq7L7N8YT9
+
+
+# The IP address on which to listen.
+http.addr =
+
+# 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
+#
+# The HttpOnly attribute is supported by most modern browsers. On a supported
+# browser, an HttpOnly session cookie will be used only when transmitting HTTP
+# (or HTTPS) requests, thus restricting access from other, non-HTTP APIs (such
+# as JavaScript). This restriction mitigates, but does not eliminate the threat
+# of session cookie theft via cross-site scripting (XSS). This feature applies
+# only to session-management cookies, and not other browser cookies.
+cookie.httponly = false
+
+# 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.
+cookie.secure = false
+
+
+# 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 = 01/02/2006
+format.datetime = 01/02/2006 15:04
+
+
+# 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
+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
+
+
+# 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/revel/modules/static
+
+
+
+################################################################################
+# 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 watcher.mode = "eager", the server starts to recompile
+# your application every time your application's files change.
+watcher.mode = "normal"
+
+
+# Module to run code tests in the browser
+# See:
+# http://revel.github.io/manual/testing.html
+module.testrunner = github.com/revel/revel/modules/testrunner
+
+
+# Where to log the various Revel logs
+log.trace.output = off
+log.info.output = stderr
+log.warn.output = stderr
+log.error.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 = %(app.name)s.log
+log.error.output = %(app.name)s.log
diff --git a/conf/routes b/conf/routes
new file mode 100644
index 0000000..fc8209f
--- /dev/null
+++ b/conf/routes
@@ -0,0 +1,28 @@
+# Routes
+# This file defines all application routes (Higher priority routes first)
+# ~~~~
+
+module:testrunner
+
+GET / App.Index
+GET /mail App.Mail
+GET /mail/register App.MailRegister
+POST /mail/register App.DoMailRegister
+
+GET /domain Domain.Index
+POST /domain Domain.DoEdit
+GET /domain/register Domain.Register
+POST /domain/register Domain.DoRegister
+GET /domain/login Domain.Login
+POST /domain/login Domain.DoLogin
+
+
+# Ignore favicon requests
+GET /favicon.ico 404
+
+# Map static resources from the /app/public folder to the /public path
+GET /public/*filepath Static.Serve("public")
+GET /static/*filepath Static.Serve("static")
+
+# Catch all
+* /:controller/:action :controller.:action