summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorClint Adams <clint@softwarefreedom.org>2012-10-22 15:19:04 -0400
committerClint Adams <clint@softwarefreedom.org>2012-10-22 15:19:04 -0400
commit025eb70c992914fbdf018c189d358ae250d2eeb1 (patch)
tree7367d3726594183bbb908d1a797cacd410c301cc /config
This needs to be cleaned and sanitized before publication.
Diffstat (limited to 'config')
-rw-r--r--config/models19
-rw-r--r--config/routes8
-rw-r--r--config/settings.yml19
-rw-r--r--config/sqlite.yml20
4 files changed, 66 insertions, 0 deletions
diff --git a/config/models b/config/models
new file mode 100644
index 0000000..172af23
--- /dev/null
+++ b/config/models
@@ -0,0 +1,19 @@
+User
+ ident Text
+ isAdmin Bool default=False
+ UniqueUser ident
+ deriving Show Eq
+TimeEntry
+ user UserId
+ category TimeCategoryId
+ day Day
+ hours Double
+ timestamp UTCTime
+ deriving Show Eq
+TimeCategory
+ name Text
+ disabled Bool
+ UniqueTimeCategory name
+ deriving Show Eq
+
+ -- By default this file is used in Model.hs (which is imported by Foundation.hs)
diff --git a/config/routes b/config/routes
new file mode 100644
index 0000000..a83a59f
--- /dev/null
+++ b/config/routes
@@ -0,0 +1,8 @@
+/static StaticR Static getStatic
+/auth AuthR Auth getAuth
+
+/favicon.ico FaviconR GET
+/robots.txt RobotsR GET
+
+/ HomeR GET POST
+/user/#UserId UserR GET POST
diff --git a/config/settings.yml b/config/settings.yml
new file mode 100644
index 0000000..70828ae
--- /dev/null
+++ b/config/settings.yml
@@ -0,0 +1,19 @@
+Default: &defaults
+ host: "*4" # any IPv4 host
+ port: 3000
+ approot: "http://burrell.hq.sflc.info:80"
+ copyright: Copyright (C) 2012 Clint Adams
+ #analytics: UA-YOURCODE
+
+Development:
+ <<: *defaults
+
+Testing:
+ <<: *defaults
+
+Staging:
+ <<: *defaults
+
+Production:
+ #approot: "http://www.example.com"
+ <<: *defaults
diff --git a/config/sqlite.yml b/config/sqlite.yml
new file mode 100644
index 0000000..ba8db2e
--- /dev/null
+++ b/config/sqlite.yml
@@ -0,0 +1,20 @@
+Default: &defaults
+ database: sflctimekeeper.sqlite3
+ poolsize: 10
+
+Development:
+ <<: *defaults
+
+Testing:
+ database: sflctimekeeper_test.sqlite3
+ <<: *defaults
+
+Staging:
+ database: sflctimekeeper_staging.sqlite3
+ poolsize: 100
+ <<: *defaults
+
+Production:
+ database: sflctimekeeper_production.sqlite3
+ poolsize: 100
+ <<: *defaults