11import Config
22
3- port = System . get_env ( "CODEBATTLE_PORT" , "4000" )
4- host = System . get_env ( "CODEBATTLE_HOSTNAME" , "codebattle.hexlet.io" )
3+ codebattle_port = System . get_env ( "CODEBATTLE_PORT" , "4000" )
4+ codebattle_host = System . get_env ( "CODEBATTLE_HOSTNAME" , "codebattle.hexlet.io" )
55secret_key_base = System . get_env ( "CODEBATTLE_SECRET_KEY_BASE" )
66live_view_salt = System . get_env ( "CODEBATTLE_LIVE_VIEW_SALT" )
77
@@ -29,8 +29,8 @@ checker_executor =
2929 _ -> Codebattle.CodeCheck.Executor.RemoteDockerRun
3030 end
3131
32- port = System . get_env ( "CODEBATTLE_RUNNER_PORT" , "4001" )
33- host = System . get_env ( "CODEBATTLE_RUNNER_HOSTNAME" , "codebattle.hexlet.io" )
32+ runner_port = System . get_env ( "CODEBATTLE_RUNNER_PORT" , "4001" )
33+ runner_host = System . get_env ( "CODEBATTLE_RUNNER_HOSTNAME" , "codebattle.hexlet.io" )
3434secret_key_base = System . get_env ( "CODEBATTLE_SECRET_KEY_BASE" )
3535
3636config :codebattle , Codebattle.Plugs , rollbar_api_key: System . get_env ( "ROLLBAR_API_KEY" )
@@ -56,8 +56,8 @@ config :codebattle, CodebattleWeb.BotEndpoint,
5656 server: true
5757
5858config :codebattle , CodebattleWeb.Endpoint ,
59- http: [ port: port ] ,
60- url: [ host: host , scheme: "https" , port: 443 ] ,
59+ http: [ port: codebattle_port ] ,
60+ url: [ host: codebattle_host , scheme: "https" , port: 443 ] ,
6161 cache_static_manifest: "priv/static/cache_manifest.json" ,
6262 secret_key_base: secret_key_base ,
6363 live_view: [ signing_salt: live_view_salt ] ,
@@ -148,8 +148,8 @@ config :phoenix_meta_tags,
148148 }
149149
150150config :runner , RunnerWeb.Endpoint ,
151- http: [ :inet6 , port: port ] ,
152- url: [ host: host , port: 81 ] ,
151+ http: [ :inet6 , port: runner_port ] ,
152+ url: [ host: runner_host , port: 81 ] ,
153153 secret_key_base: secret_key_base ,
154154 server: true
155155
0 commit comments