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

Although the current list of queries is only 2 elements ("time" and "weather"), this allows searches for Whoogle and Searx to be slightly more random, and potentially avoid any issues with their parent engine rate limiting them.
22 lines
535 B
Elixir
22 lines
535 B
Elixir
import Config
|
|
|
|
config :farside,
|
|
port: 4001,
|
|
redis_conn: "redis://localhost:6379",
|
|
update_file: ".update-results",
|
|
service_prefix: "service-",
|
|
fallback_suffix: "-fallback",
|
|
previous_suffix: "-previous",
|
|
services_json: "services.json",
|
|
index: "index.eex",
|
|
headers: [
|
|
{"User-Agent", "Mozilla/5.0 (Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"},
|
|
{"Accept", "text/html"},
|
|
{"Accept-Language", "en-US,en;q=0.5"},
|
|
{"Accept-Encoding", "gzip, deflate, br"}
|
|
],
|
|
queries: [
|
|
"weather",
|
|
"time"
|
|
]
|