diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-19 22:44:33 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-19 22:44:33 -0600 |
commit | 3664286506f673737c0784b9cfd494cda1dc4618 (patch) | |
tree | aa30b37e0d9057bf945eec0d3699404e08445b8b /config.nix | |
parent | 8da42184eb26bbd35618d81e47bcd23b6ce21adb (diff) |
Actually use the auth middleware for assets routes
Diffstat (limited to 'config.nix')
-rw-r--r-- | config.nix | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -1,14 +1,19 @@ { - runDir = "/tmp/mediocre-blog/run"; - dataDir = "/tmp/mediocre-blog/data"; + runDir = "/tmp/mediocre-blog/run"; + dataDir = "/tmp/mediocre-blog/data"; - powSecret = "ssshhh"; - mlSMTPAddr = ""; - mlSMTPAuth = ""; - mlPublicURL = "http://localhost:4000"; - listenProto = "tcp"; - listenAddr = ":4000"; + 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"; + # 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. + apiAuthUsers = { + "foo" = "$2a$13$0JdWlUfHc.3XimEMpEu1cuu6RodhUvzD9l7iiAqa4YkM3mcFV5Pxi"; + }; } |