Skip to content

Commit

Permalink
update docs; remove livecertificate from cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
glutamate committed Nov 18, 2017
1 parent 1b3eadd commit 335880e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions dampf/.dampfcfg.yaml.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# a file such as the below should me placed in $HOME/.dampfcfg.yaml

liveCertificate: /etc/letsencrypt/live/mydomain.com/

postgres:
host: localhost
port: 5432

users:
postgres: pgpassword
user: password
user: userspassword

8 changes: 6 additions & 2 deletions dampf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ This file should *not* be checked into version control as it contains secrets th
Syntax:

```
liveCertificate: {part to Let's encrypt certificate file}
postgres:
host: {host address or name}
port: {port number}
Expand Down Expand Up @@ -242,6 +240,12 @@ Syntax: `dampf monitor {test name}`
Run specified test (if non specified, run all tests except those only marked
"AtBuild") against the live production environment.

### `test` command

Syntax: `dampf test {test name}`

Run specified test (if non specified, run all tests) in a synthetic environment.

Status: Not implemented

## Environment variables and host names
Expand Down
4 changes: 1 addition & 3 deletions dampf/lib/Dampf/ConfigFile/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ pShowDampfConfig = render . hang (text "Config File:") 4 . pprDampfConfig

pprDampfConfig :: DampfConfig -> Doc
pprDampfConfig cfg = vcat
[ pprLiveCertificate l
, pprDatabaseServer d
[ pprDatabaseServer d
]
where
l = cfg ^. liveCertificate
d = cfg ^. postgres


Expand Down
3 changes: 1 addition & 2 deletions dampf/lib/Dampf/ConfigFile/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ instance FromJSON PostgresConfig where


data DampfConfig = DC
{ _liveCertificate :: Maybe FilePath
, _postgres :: Maybe PostgresConfig
{ _postgres :: Maybe PostgresConfig
} deriving (Eq, Show, Generic)

makeClassy ''DampfConfig
Expand Down

0 comments on commit 335880e

Please sign in to comment.