aboutsummaryrefslogtreecommitdiff
path: root/config.dhall
blob: 8f4a9e4be8432c78dd88ef88ca321b1040ae47f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
let Person = ./dhall/types/Person.dhall

let Author = ./dhall/types/Author.dhall

let Job = ./dhall/types/Job.dhall

let defaultPort = env:PORT ? 3030

let defaultWebMentionEndpoint =
        env:WEBMENTION_ENDPOINT
      ? "https://mi.within.website/api/webmention/accept"

let Config =
      { Type =
          { signalboost : List Person.Type
          , authors : List Author.Type
          , port : Natural
          , clackSet : List Text
          , resumeFname : Text
          , webMentionEndpoint : Text
          , miToken : Text
          , jobHistory : List Job.Type
          }
      , default =
        { signalboost = [] : List Person.Type
        , authors = [] : List Author.Type
        , port = defaultPort
        , clackSet = [ "Ashlynn" ]
        , resumeFname = "./static/resume/resume.md"
        , webMentionEndpoint = defaultWebMentionEndpoint
        , miToken = "${env:MI_TOKEN as Text ? ""}"
        , jobHistory = [] : List Job.Type
        }
      }

in  Config::{
    , signalboost = ./dhall/signalboost.dhall
    , authors = ./dhall/authors.dhall
    , clackSet =
      [ "Ashlynn", "Terry Davis", "Dennis Ritchie", "Steven Hawking" ]
    , jobHistory = ./dhall/jobHistory.dhall
    }