From b5bad4defc6c75b9b969658229ce5fd2f3a46107 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Tue, 21 Jan 2025 13:46:29 -0700 Subject: Rewrite project, add daily update of services list The project was rewritten from Elixir to Go, primarily because: - I don't write Elixir anymore and don't want to maintain a project in a language I no longer write - I already write Go for other projects, including my day job, so it's a safer bet for a project that I want to maintain long term - Go allows me to build portable executables that will make it easier for others to run farside on their own machines The Go version of Farsside also has a built in task to fetch the latest services{-full}.json file from the repo and ingest it, which makes running a farside server a lot simpler. It also automatically fetches the latest instance state from https://farside.link unless configured as a primary farside node, which will allow others to use farside without increasing traffic to all instances that are queried by farside (just to the farside node itself). --- config/config.exs | 19 ------------------- config/runtime.exs | 6 ------ 2 files changed, 25 deletions(-) delete mode 100644 config/config.exs delete mode 100644 config/runtime.exs (limited to 'config') diff --git a/config/config.exs b/config/config.exs deleted file mode 100644 index 11f61d9..0000000 --- a/config/config.exs +++ /dev/null @@ -1,19 +0,0 @@ -import Config - -config :farside, - update_file: ".update-results", - service_prefix: "service-", - fallback_suffix: "-fallback", - previous_suffix: "-previous", - index: "index.eex", - route: "route.eex", - headers: [ - {"User-Agent", "Mozilla/5.0 (compatible; Farside/0.1.0; +https://farside.link)"}, - {"Accept", "text/html"}, - {"Accept-Language", "en-US,en;q=0.5"}, - {"Accept-Encoding", "gzip, deflate, br"} - ], - queries: [ - "weather", - "time" - ] diff --git a/config/runtime.exs b/config/runtime.exs deleted file mode 100644 index e00feb8..0000000 --- a/config/runtime.exs +++ /dev/null @@ -1,6 +0,0 @@ -import Config - -config :farside, - port: System.get_env("FARSIDE_PORT", "4001"), - services_json: System.get_env("FARSIDE_SERVICES_JSON", "services.json"), - data_dir: System.get_env("FARSIDE_DATA_DIR", File.cwd!) -- cgit v1.2.3