diff options
author | Simponic <loganhunt@simponic.xyz> | 2022-12-19 01:37:10 -0700 |
---|---|---|
committer | Simponic <loganhunt@simponic.xyz> | 2022-12-19 01:39:10 -0700 |
commit | 9cdfb6eb9cd30c4e06a7d9fef53e519983827d81 (patch) | |
tree | 4622a1809df6a6424f1b5f9f10c72dd02f9fc176 /config | |
download | chessh-9cdfb6eb9cd30c4e06a7d9fef53e519983827d81.tar.gz chessh-9cdfb6eb9cd30c4e06a7d9fef53e519983827d81.zip |
Initial commit!
Diffstat (limited to 'config')
-rw-r--r-- | config/.gitignore | 1 | ||||
-rw-r--r-- | config/config.exs | 11 | ||||
-rw-r--r-- | config/dev.exs | 9 | ||||
-rw-r--r-- | config/test.exs | 9 |
4 files changed, 30 insertions, 0 deletions
diff --git a/config/.gitignore b/config/.gitignore new file mode 100644 index 0000000..e6fa00c --- /dev/null +++ b/config/.gitignore @@ -0,0 +1 @@ +prod.exs
\ No newline at end of file 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" diff --git a/config/dev.exs b/config/dev.exs new file mode 100644 index 0000000..f71d02e --- /dev/null +++ b/config/dev.exs @@ -0,0 +1,9 @@ +import Config + +config :chessh, Chessh.Repo, + database: "chessh", + username: "postgres", + password: "postgres", + hostname: "localhost" + +config :chessh, ecto_repos: [Chessh.Repo] diff --git a/config/test.exs b/config/test.exs new file mode 100644 index 0000000..b46bc25 --- /dev/null +++ b/config/test.exs @@ -0,0 +1,9 @@ +import Config + +config :chessh, Chessh.Repo, + database: "chessh-test", + username: "postgres", + password: "postgres", + hostname: "localhost" + +config :chessh, ecto_repos: [Chessh.Repo] |