summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/models14
-rw-r--r--config/postgresql.yml24
-rw-r--r--config/robots.txt1
-rw-r--r--config/routes10
-rw-r--r--config/settings.yml19
5 files changed, 68 insertions, 0 deletions
diff --git a/config/models b/config/models
new file mode 100644
index 0000000..d6b375e
--- /dev/null
+++ b/config/models
@@ -0,0 +1,14 @@
+User
+ ident Text
+ password Text
+ salt Text
+ primaryemail EmailId Maybe
+ UniqueUser ident
+Email
+ email Text
+ user UserId Maybe
+ verkey Text Maybe
+ lastverified UTCTime Maybe
+ UniqueEmail email
+
+ -- By default this file is used in Model.hs (which is imported by Foundation.hs)
diff --git a/config/postgresql.yml b/config/postgresql.yml
new file mode 100644
index 0000000..780b5b3
--- /dev/null
+++ b/config/postgresql.yml
@@ -0,0 +1,24 @@
+Default: &defaults
+ host: ""
+ port: 5432
+ user: ""
+ password: ""
+ database: pfifcontractors
+ poolsize: 10
+
+Development:
+ <<: *defaults
+
+Testing:
+ database: pfifcontractors_test
+ <<: *defaults
+
+Staging:
+ database: pfifcontractors_staging
+ poolsize: 100
+ <<: *defaults
+
+Production:
+ database: pfifcontractors_production
+ poolsize: 100
+ <<: *defaults
diff --git a/config/robots.txt b/config/robots.txt
new file mode 100644
index 0000000..7d329b1
--- /dev/null
+++ b/config/robots.txt
@@ -0,0 +1 @@
+User-agent: *
diff --git a/config/routes b/config/routes
new file mode 100644
index 0000000..b964969
--- /dev/null
+++ b/config/routes
@@ -0,0 +1,10 @@
+/static StaticR Static getStatic
+/auth AuthR Auth getAuth
+
+/favicon.ico FaviconR GET
+/robots.txt RobotsR GET
+
+/ HomeR GET POST
+/me MeR GET POST
+/newdest NewdestR POST
+/verify/#EmailId/*Texts VerifyEmailR GET
diff --git a/config/settings.yml b/config/settings.yml
new file mode 100644
index 0000000..296b035
--- /dev/null
+++ b/config/settings.yml
@@ -0,0 +1,19 @@
+Default: &defaults
+ host: "*4" # any IPv4 host
+ port: 3000
+ approot: "http://localhost:3000"
+ copyright: Copyright © 2012 Clint Adams
+ #analytics: UA-YOURCODE
+
+Development:
+ <<: *defaults
+
+Testing:
+ <<: *defaults
+
+Staging:
+ <<: *defaults
+
+Production:
+ approot: "http://www.protocolfreedom.org/contractors"
+ <<: *defaults