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). --- mix.exs | 74 ----------------------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 mix.exs (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs deleted file mode 100644 index c2ffd56..0000000 --- a/mix.exs +++ /dev/null @@ -1,74 +0,0 @@ -defmodule Farside.MixProject do - use Mix.Project - - @source_url "https://github.com/benbusby/farside.git" - @version "0.1.1" - @app :farside - - def project do - [ - app: @app, - version: @version, - name: "farside", - elixir: "~> 1.8", - source_url: @source_url, - start_permanent: Mix.env() == :prod || Mix.env() == :cli, - deps: deps(), - aliases: aliases(), - description: description(), - package: package(), - releases: [{@app, release()}], - preferred_cli_env: [release: :cli] - ] - end - - defp aliases do - [] - end - - # Run "mix help compile.app" to learn about applications. - def application do - [ - extra_applications: [:logger], - mod: {Farside.Application, []} - ] - end - - # Run "mix help deps" to learn about dependencies. - defp deps do - [ - {:httpoison, "~> 1.8"}, - {:jason, "~> 1.1"}, - {:plug_attack, "~> 0.4.2"}, - {:plug_cowboy, "~> 2.0"}, - {:quantum, "~> 3.0"}, - {:remote_ip, "~> 1.1"}, - {:cubdb, "~> 2.0.1"}, - {:bakeware, "~> 0.2.4"} - ] - end - - defp description() do - "A redirecting service for FOSS alternative frontends." - end - - defp package() do - [ - name: "farside", - files: ["lib", "mix.exs", "README*"], - maintainers: ["Ben Busby"], - licenses: ["MIT"], - links: %{"GitHub" => "https://github.com/benbusby/farside"} - ] - end - - defp release() do - [ - overwrite: true, - cookie: "#{@app}_cookie", - quiet: true, - steps: [:assemble, &Bakeware.assemble/1], - strip_beams: Mix.env() == :cli - ] - end -end -- cgit v1.2.3