From 593a631a564926b5b118805b8bea13a753e4757d Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 28 Jan 2023 22:56:10 -0700 Subject: Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes: --- config/config.exs | 1 - config/runtime.exs | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'config') 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") -- cgit v1.2.3-70-g09d2