summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.exs1
-rw-r--r--config/runtime.exs5
2 files changed, 3 insertions, 3 deletions
diff --git a/config/config.exs b/config/config.exs
index 15cde18..a5782d4 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -15,7 +15,6 @@ config :chessh, RateLimits,
player_public_keys: 15
config :chessh, Web,
- port: 8080,
github_oauth_login_url: "https://github.com/login/oauth/access_token",
github_user_api_url: "https://api.github.com/user"
diff --git a/config/runtime.exs b/config/runtime.exs
index 832dc95..dfd8427 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -1,14 +1,15 @@
import Config
config :chessh,
- port: String.to_integer(System.get_env("SSH_PORT", "42069"))
+ ssh_port: String.to_integer(System.get_env("SSH_PORT", "42069"))
config :chessh, Web,
github_client_id: System.get_env("GITHUB_CLIENT_ID"),
github_client_secret: System.get_env("GITHUB_CLIENT_SECRET"),
github_user_agent: System.get_env("GITHUB_USER_AGENT"),
client_redirect_after_successful_sign_in:
- System.get_env("CLIENT_REDIRECT_AFTER_OAUTH", "http://localhost:3000")
+ System.get_env("CLIENT_REDIRECT_AFTER_OAUTH", "http://localhost:3000"),
+ port: String.to_integer(System.get_env("WEB_PORT", "8080"))
config :joken,
default_signer: System.get_env("JWT_SECRET")