summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-19 02:39:40 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-19 02:39:40 -0700
commitb4743f9efb685545cdd780cc9ba7a50e083dd8cf (patch)
treea538467211886df38c79706769029e23c7aadb61 /config/config.exs
parent9cdfb6eb9cd30c4e06a7d9fef53e519983827d81 (diff)
downloadchessh-b4743f9efb685545cdd780cc9ba7a50e083dd8cf.tar.gz
chessh-b4743f9efb685545cdd780cc9ba7a50e083dd8cf.zip
Get public key authenticator actually running, add password validator via hash
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs12
1 files changed, 10 insertions, 2 deletions
diff --git a/config/config.exs b/config/config.exs
index 807824a..61bf72f 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -1,11 +1,19 @@
import Config
+config :chessh, Chessh.Repo,
+ database: "chessh",
+ username: "postgres",
+ password: "postgres",
+ hostname: "localhost"
+
+config :chessh, ecto_repos: [Chessh.Repo]
+
config :esshd,
enabled: true,
priv_dir: Path.join(Path.dirname(__DIR__), "priv/keys"),
handler: {Chessh.Shell, :on_shell, 4},
port: 42069,
- public_key_authenticator: Chessh.Auth.KeyAuthenticator,
- password_authenticator: Chessh.Auth.PasswordAuthenticator
+ password_authenticator: Chessh.Auth.PasswordAuthenticator,
+ public_key_authenticator: Chessh.Auth.KeyAuthenticator
import_config "#{config_env()}.exs"