This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
bdfr-browser/config/runtime.exs

15 lines
725 B
Elixir
Raw Normal View History

2023-05-17 22:13:55 +00:00
import Config
config :bdfr_browser,
base_directory: System.get_env("BDFR_BROWSER_BASE_DIRECTORY", "/nonexistant"),
chat_directory: System.get_env("BDFR_BROWSER_CHAT_DIRECTORY", "/nonexistant"),
2023-05-17 22:13:55 +00:00
http_ip: to_charlist(System.get_env("BDFR_BROWSER_HTTP_IP", "127.0.0.1")),
http_port: String.to_integer(System.get_env("BDFR_BROWSER_HTTP_PORT", "4040"))
2023-08-13 23:18:55 +00:00
config :bdfr_browser, BdfrBrowser.Repo,
database: System.get_env("BDFR_BROWSER_REPO_DATABASE", "postgres"),
username: System.get_env("BDFR_BROWSER_REPO_USER", "bdfr-browser"),
password: System.get_env("BDFR_BROWSER_REPO_PASSWORD", ""),
socket_dir: System.get_env("BDFR_BROWSER_REPO_SOCKET_DIR", nil),
hostname: System.get_env("BDFR_BROWSER_REPO_HOST", nil)