summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.exs12
-rw-r--r--config/dev.exs8
2 files changed, 10 insertions, 10 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"
diff --git a/config/dev.exs b/config/dev.exs
index f71d02e..becde76 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -1,9 +1 @@
import Config
-
-config :chessh, Chessh.Repo,
- database: "chessh",
- username: "postgres",
- password: "postgres",
- hostname: "localhost"
-
-config :chessh, ecto_repos: [Chessh.Repo]