mirror of
https://github.com/benbusby/farside.git
synced 2025-03-15 11:46:32 -04:00

Connection values (such as redis server port and the port to run farside on) as well as the services json file to use can now be set via environment variables: FARSIDE_PORT sets the port for Farside to run on FARSIDE_REDIS_PORT sets the redis server port for Farside to use FARSIDE_SERVICES_JSON sets the services json file for Farside to use This partially addresses the move towards de-listing Cloudflare instances by default by allowing different services json files to be used with different redis servers. See #43
7 lines
237 B
Elixir
7 lines
237 B
Elixir
import Config
|
|
|
|
config :farside,
|
|
port: System.get_env("FARSIDE_PORT", "4001"),
|
|
redis_conn: "redis://localhost:#{System.get_env("FARSIDE_REDIS_PORT", "6379")}",
|
|
services_json: System.get_env("FARSIDE_SERVICES_JSON", "services.json")
|