summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-19 01:37:10 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-19 01:39:10 -0700
commit9cdfb6eb9cd30c4e06a7d9fef53e519983827d81 (patch)
tree4622a1809df6a6424f1b5f9f10c72dd02f9fc176 /config/config.exs
downloadchessh-9cdfb6eb9cd30c4e06a7d9fef53e519983827d81.tar.gz
chessh-9cdfb6eb9cd30c4e06a7d9fef53e519983827d81.zip
Initial commit!
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
new file mode 100644
index 0000000..807824a
--- /dev/null
+++ b/config/config.exs
@@ -0,0 +1,11 @@
+import Config
+
+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
+
+import_config "#{config_env()}.exs"