summaryrefslogtreecommitdiff
path: root/config/runtime.exs
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-01-28 22:56:10 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-01-28 22:56:10 -0700
commit593a631a564926b5b118805b8bea13a753e4757d (patch)
tree3f2a5460eda4ef19142b20386c7dee001f4675b5 /config/runtime.exs
parentbb66cd91a3e76e9b746750de51b5edd34b5d2259 (diff)
downloadchessh-593a631a564926b5b118805b8bea13a753e4757d.tar.gz
chessh-593a631a564926b5b118805b8bea13a753e4757d.zip
Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes:
Diffstat (limited to 'config/runtime.exs')
-rw-r--r--config/runtime.exs5
1 files changed, 3 insertions, 2 deletions
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")