summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2025-01-21 13:46:29 -0700
committerBen Busby <contact@benbusby.com>2025-01-21 13:46:29 -0700
commitb5bad4defc6c75b9b969658229ce5fd2f3a46107 (patch)
treeacc460a4e15669e71dc61f0df2df5a27c6d2f965 /mix.exs
parente0e395f3c82627190897683a40e4ba28104a03f9 (diff)
downloadfarside-b5bad4defc6c75b9b969658229ce5fd2f3a46107.tar.gz
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).
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs74
1 files changed, 0 insertions, 74 deletions
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