From 62597317839c7945bfbc4b7a00f55d2db6459ab6 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Fri, 24 Apr 2015 12:53:02 -0400 Subject: Finally put pfifcontractors into git --- config/models | 14 ++++++++++++++ config/postgresql.yml | 24 ++++++++++++++++++++++++ config/robots.txt | 1 + config/routes | 10 ++++++++++ config/settings.yml | 19 +++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 config/models create mode 100644 config/postgresql.yml create mode 100644 config/robots.txt create mode 100644 config/routes create mode 100644 config/settings.yml (limited to 'config') 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 -- cgit v1.2.3