summaryrefslogtreecommitdiff
path: root/config.nix
blob: e6b6697ec53bd310ead5fffd848217d7ec1fc95b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  runDir = "/tmp/mediocre-blog/run";
  dataDir = "/tmp/mediocre-blog/data";

  powSecret = "ssshhh";
  mlSMTPAddr = "";
  mlSMTPAuth = "";
  mlPublicURL = "http://localhost:4000";
  listenProto = "tcp";
  listenAddr = ":4000";

  # If empty then a derived static directory is used
  staticProxyURL = "http://127.0.0.1:4002";

  # password is "bar". This should definitely be changed for prod.
  httpAuthUsers = {
    "foo" = "$2a$13$0JdWlUfHc.3XimEMpEu1cuu6RodhUvzD9l7iiAqa4YkM3mcFV5Pxi";
  };

  # Very low, should be increased for prod.
  httpAuthRatelimit = "1s";
}