Compare commits

...

51 Commits
v0.3.0 ... main

Author SHA1 Message Date
github-actions
6822d25fd6 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-14 00:16:00 +00:00
github-actions
26b6a0d53b [CI] Auto update instances
Some checks are pending
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-13 00:17:01 +00:00
github-actions
ece6e525ef [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-12 00:16:05 +00:00
github-actions
1525c5df0a [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-11 00:16:59 +00:00
github-actions
a8c11f05e7 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
2025-03-10 00:15:31 +00:00
github-actions
e00ab4d092 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-09 00:15:39 +00:00
github-actions
88f68ca37e [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
2025-03-08 00:13:34 +00:00
github-actions
25b4ccc6d3 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-07 00:15:52 +00:00
github-actions
ecf9baaba6 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-06 00:17:11 +00:00
github-actions
d1c724905f [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-05 00:17:17 +00:00
github-actions
ea20a3f909 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-04 00:16:19 +00:00
github-actions
3e2ae8117a [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-03 00:17:32 +00:00
github-actions
deb5cd20cd [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-02 00:17:00 +00:00
github-actions
90f2fe404e [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-03-01 00:17:44 +00:00
github-actions
76d20b1aa6 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-28 00:18:26 +00:00
github-actions
8d9089a592 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-27 00:18:03 +00:00
Ben Busby
6970db9c5b
Run cron init in goroutine
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
Cron init blocks the server from starting until it finishes, which is
not ideal.
2025-02-26 12:38:18 -07:00
Ben Busby
d15e05d39e
Allow skipping instance checks for particular services
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
Services like searxng don't need to have instance checks performed since
the nightly cron task filters out the instances already.
2025-02-25 17:21:05 -07:00
github-actions
99e5dfcac2 [CI] Auto update instances 2025-02-26 00:18:50 +00:00
Ben Busby
356ea3b3c2
Use originally requested service if not using URL redirect
The specified service (i.e. whoogle) should be used for the redirect if
explicitly stated, rather than randomly fetching an instance for the
provided URL.

For instance:

- farside.link/https://google.com/search?q=balatro can redirect to a
  whoogle or searxng instance.
- farside.link/whoogle/search?q=balatro will always redirect to a
  whoogle instance.
2025-02-25 16:42:23 -07:00
Ben Busby
e2ac4a20f8
Add missing tent mapping 2025-02-25 16:01:05 -07:00
Ben Busby
f3ab726cec
Add missing handling for 4get and LibreY, remove LibreX 2025-02-25 15:38:33 -07:00
Ben Busby
4b19ad5228
Include original url query in redirect
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
Query params were previously getting ignored in farside redirects, this
updates the routing to append the original url query params to the end
of the redirected instance.
2025-02-25 11:20:13 -07:00
Will
37b0df5c36
Add missing services from services.json to mappings (#190) 2025-02-25 11:07:25 -07:00
github-actions
8978b9bc73 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-25 00:17:40 +00:00
github-actions
b71075216e [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-24 00:16:23 +00:00
github-actions
deb1cd62ae [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-23 00:17:30 +00:00
github-actions
ef2e71971f [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-22 00:17:06 +00:00
github-actions
746f8ec0bc [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-21 00:16:02 +00:00
github-actions
fc93ddbb3e [CI] Auto update instances
Some checks failed
Tests / test (1.22.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, macos-latest) (push) Has been cancelled
Tests / test (1.21.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, windows-latest) (push) Has been cancelled
Tests / test (1.22.x, macos-latest) (push) Has been cancelled
Tests / test (1.22.x, windows-latest) (push) Has been cancelled
Tests / test (1.23.x, macos-latest) (push) Has been cancelled
Tests / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.23.x, windows-latest) (push) Has been cancelled
2025-02-20 00:16:32 +00:00
github-actions
b961c60041 [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
/ update-instances (push) Has been cancelled
2025-02-19 00:16:21 +00:00
github-actions
22c172f27a [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
/ update-instances (push) Has been cancelled
2025-02-18 00:17:42 +00:00
github-actions
c948bebd7c [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-17 00:17:17 +00:00
github-actions
c12f8c8435 [CI] Auto update instances 2025-02-16 00:18:50 +00:00
github-actions
900a043e6c [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Has been cancelled
Tests / test (1.21.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, windows-latest) (push) Has been cancelled
Tests / test (1.22.x, macos-latest) (push) Has been cancelled
Tests / test (1.22.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.22.x, windows-latest) (push) Has been cancelled
Tests / test (1.23.x, macos-latest) (push) Has been cancelled
Tests / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.23.x, windows-latest) (push) Has been cancelled
2025-02-15 00:17:31 +00:00
github-actions
8b8baca99a [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
/ update-instances (push) Has been cancelled
2025-02-14 00:16:39 +00:00
github-actions
62875f6edc [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Has been cancelled
Tests / test (1.21.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, windows-latest) (push) Has been cancelled
Tests / test (1.22.x, macos-latest) (push) Has been cancelled
Tests / test (1.22.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.22.x, windows-latest) (push) Has been cancelled
Tests / test (1.23.x, macos-latest) (push) Has been cancelled
Tests / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.23.x, windows-latest) (push) Has been cancelled
2025-02-13 00:16:26 +00:00
github-actions
b0879526fd [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-12 00:16:53 +00:00
github-actions
3490639f03 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-11 00:17:23 +00:00
github-actions
e4fdef870f [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-10 00:17:44 +00:00
github-actions
481c348891 [CI] Auto update instances
Some checks are pending
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
2025-02-09 00:19:27 +00:00
github-actions
f492e5bb18 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-08 00:16:41 +00:00
github-actions
d5f1aa4575 [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Has been cancelled
Tests / test (1.21.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, windows-latest) (push) Has been cancelled
Tests / test (1.22.x, macos-latest) (push) Has been cancelled
Tests / test (1.22.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.22.x, windows-latest) (push) Has been cancelled
Tests / test (1.23.x, macos-latest) (push) Has been cancelled
Tests / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.23.x, windows-latest) (push) Has been cancelled
2025-02-07 00:18:30 +00:00
github-actions
f946a2d977 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-06 00:17:59 +00:00
github-actions
44f9f9e59f [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-05 00:17:46 +00:00
github-actions
42afcb4b9f [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-04 00:21:17 +00:00
github-actions
d42668a621 [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Has been cancelled
Tests / test (1.21.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, windows-latest) (push) Has been cancelled
Tests / test (1.22.x, macos-latest) (push) Has been cancelled
Tests / test (1.22.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.22.x, windows-latest) (push) Has been cancelled
Tests / test (1.23.x, macos-latest) (push) Has been cancelled
Tests / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.23.x, windows-latest) (push) Has been cancelled
2025-02-03 00:17:41 +00:00
github-actions
c02ebcebfb [CI] Auto update instances
Some checks failed
Tests / test (1.21.x, macos-latest) (push) Has been cancelled
Tests / test (1.21.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.21.x, windows-latest) (push) Has been cancelled
Tests / test (1.22.x, macos-latest) (push) Has been cancelled
Tests / test (1.22.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.22.x, windows-latest) (push) Has been cancelled
Tests / test (1.23.x, macos-latest) (push) Has been cancelled
Tests / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Tests / test (1.23.x, windows-latest) (push) Has been cancelled
/ update-instances (push) Has been cancelled
2025-02-02 00:17:46 +00:00
github-actions
fd723b0b05 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-02-01 00:17:20 +00:00
github-actions
70d06396e4 [CI] Auto update instances
Some checks are pending
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
2025-01-31 00:15:37 +00:00
github-actions
4d9824e8a1 [CI] Auto update instances
Some checks failed
Tests / test (1.22.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.22.x, windows-latest) (push) Waiting to run
Tests / test (1.21.x, macos-latest) (push) Waiting to run
Tests / test (1.21.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.21.x, windows-latest) (push) Waiting to run
Tests / test (1.22.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, macos-latest) (push) Waiting to run
Tests / test (1.23.x, ubuntu-latest) (push) Waiting to run
Tests / test (1.23.x, windows-latest) (push) Waiting to run
/ update-instances (push) Has been cancelled
2025-01-30 00:16:40 +00:00
9 changed files with 118 additions and 203 deletions

View File

@ -1,4 +0,0 @@
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]

View File

@ -251,12 +251,6 @@ jobs:
.clearnet] |
sort' > librey-tmp.json
jq --slurpfile librex librey-tmp.json \
'( .[] | select(.type == "librex") )
.instances |= $librex[0]' services-full.json > services-tmp.json
mv services-tmp.json services-full.json
jq --slurpfile librey librey-tmp.json \
'( .[] | select(.type == "librey") )
.instances |= $librey[0]' services-full.json > services-tmp.json

View File

@ -7,6 +7,7 @@ import (
"log"
"net/http"
"os"
"slices"
"strings"
"time"
@ -18,9 +19,14 @@ const defaultPrimary = "https://farside.link/state"
const defaultCFPrimary = "https://cf.farside.link/state"
var LastUpdate time.Time
var skipInstanceChecks = []string{
"searx",
"searxng",
}
func InitCronTasks() {
log.Println("Initializing cron tasks...")
updateServiceList()
cronDisabled := os.Getenv("FARSIDE_CRON")
if len(cronDisabled) == 0 || cronDisabled == "1" {
@ -58,6 +64,8 @@ func queryServiceInstances() {
}
for _, service := range services.ServiceList {
canSkip := slices.Contains[[]string, string](skipInstanceChecks, service.Type)
fmt.Printf("===== %s =====\n", service.Type)
var instances []string
for _, instance := range service.Instances {
@ -68,7 +76,7 @@ func queryServiceInstances() {
available := queryServiceInstance(
instance,
testURL,
)
canSkip)
if available {
instances = append(instances, instance)
@ -105,12 +113,17 @@ func fetchInstancesFromPrimary() ([]services.Service, error) {
return serviceList, err
}
func queryServiceInstance(instance, testURL string) bool {
func queryServiceInstance(instance, testURL string, canSkipCheck bool) bool {
testMode := os.Getenv("FARSIDE_TEST")
if len(testMode) > 0 && testMode == "1" {
return true
}
if canSkipCheck {
fmt.Printf(" [INFO] Adding %s\n", instance)
return true
}
ua := "Mozilla/5.0 (compatible; Farside/1.0.0; +https://farside.link)"
url := instance + testURL

View File

@ -24,7 +24,7 @@ func main() {
}
}()
db.InitCronTasks()
go db.InitCronTasks()
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)

View File

@ -3,6 +3,7 @@ package server
import (
_ "embed"
"encoding/json"
"fmt"
"html/template"
"log"
"net/http"
@ -61,22 +62,22 @@ func state(w http.ResponseWriter, r *http.Request) {
}
func baseRouting(w http.ResponseWriter, r *http.Request) {
routing(w, r, false)
routing(w, r, false, r.URL.RawQuery)
}
func jsRouting(w http.ResponseWriter, r *http.Request) {
r.URL.Path = strings.Replace(r.URL.Path, "/_", "", 1)
routing(w, r, true)
routing(w, r, true, r.URL.RawQuery)
}
func routing(w http.ResponseWriter, r *http.Request, jsEnabled bool) {
func routing(w http.ResponseWriter, r *http.Request, jsEnabled bool, query string) {
value := r.PathValue("routing")
if len(value) == 0 {
value = r.URL.Path
}
url, _ := url.Parse(value)
path := strings.TrimPrefix(url.Path, "/")
parsedURL, _ := url.Parse(value)
path := strings.TrimPrefix(parsedURL.Path, "/")
segments := strings.Split(path, "/")
if len(segments[0]) == 0 {
@ -85,8 +86,9 @@ func routing(w http.ResponseWriter, r *http.Request, jsEnabled bool) {
target, err := services.MatchRequest(segments[0])
if err != nil {
errMsg := fmt.Sprintf("No routing found for '%s'", segments[0])
log.Printf("Error during match request: %v\n", err)
http.Error(w, "No routing found for "+target, http.StatusBadRequest)
http.Error(w, errMsg, http.StatusBadRequest)
return
}
@ -119,6 +121,7 @@ func routing(w http.ResponseWriter, r *http.Request, jsEnabled bool) {
w.Header().Set("Pragma", "no-cache")
w.Header().Set("Expires", "0")
instance += fmt.Sprintf("?%s", query)
if jsEnabled {
data := routeData{
InstanceURL: instance,

View File

@ -4,12 +4,12 @@
"test_url": "/r/popular",
"fallback": "https://redlib.freedit.eu",
"instances": [
"https://l.opnxng.com",
"https://r.darrennathanael.com",
"https://libreddit.privacydev.net",
"https://red.arancia.click",
"https://red.artemislena.eu",
"https://red.ngn.tf",
"https://reddit.nerdvpn.de",
"https://redlib.baczek.me",
"https://redlib.catsarch.com",
"https://redlib.ducks.party",
"https://redlib.kittywi.re",
@ -17,10 +17,9 @@
"https://redlib.perennialte.ch",
"https://redlib.privacy.com.de",
"https://redlib.privacyredirect.com",
"https://redlib.r4fo.com",
"https://rl.bloat.cat",
"https://rl.rootdo.com",
"https://safereddit.com"
"https://redlib.private.coffee",
"https://redlib.seasi.dev",
"https://rl.bloat.cat"
]
},
{
@ -28,12 +27,12 @@
"test_url": "/r/popular",
"fallback": "https://redlib.freedit.eu",
"instances": [
"https://l.opnxng.com",
"https://r.darrennathanael.com",
"https://libreddit.privacydev.net",
"https://red.arancia.click",
"https://red.artemislena.eu",
"https://red.ngn.tf",
"https://reddit.nerdvpn.de",
"https://redlib.baczek.me",
"https://redlib.catsarch.com",
"https://redlib.ducks.party",
"https://redlib.kittywi.re",
@ -41,10 +40,9 @@
"https://redlib.perennialte.ch",
"https://redlib.privacy.com.de",
"https://redlib.privacyredirect.com",
"https://redlib.r4fo.com",
"https://rl.bloat.cat",
"https://rl.rootdo.com",
"https://safereddit.com"
"https://redlib.private.coffee",
"https://redlib.seasi.dev",
"https://rl.bloat.cat"
]
},
{
@ -99,9 +97,7 @@
"test_url": "/watch?v=eBGIQ7ZuuiU",
"fallback": "https://invidious.snopyta.org",
"instances": [
"https://inv.nadeko.net",
"https://invidious.nerdvpn.de",
"https://yewtu.be"
"https://inv.nadeko.net"
]
},
{
@ -135,8 +131,11 @@
"fallback": "https://nitter.net",
"instances": [
"https://lightbrd.com",
"https://nitter.net",
"https://nitter.poast.org",
"https://nitter.privacydev.net",
"https://nitter.privacyredirect.com",
"https://nitter.space",
"https://xcancel.com"
]
},
@ -209,10 +208,12 @@
"https://i.habedieeh.re",
"https://imgur.010032.xyz",
"https://imgur.artemislena.eu",
"https://imgur.fsky.io",
"https://imgur.nerdvpn.de",
"https://ri.nadeko.net",
"https://rimgo.4o1x5.dev",
"https://rimgo.aketawi.space",
"https://rimgo.astrial.org",
"https://rimgo.bloat.cat",
"https://rimgo.bus-hit.me",
"https://rimgo.canine.tools",
@ -238,7 +239,6 @@
"https://rimgo.thebunny.zone",
"https://rimgo.totaldarkness.net",
"https://rimgo.us.projectsegfau.lt",
"https://rimgo.whateveritworks.org",
"https://rmgur.com"
]
},
@ -247,30 +247,12 @@
"test_url": "/search?cookies_disabled=1&q=<%=query%>",
"fallback": "https://search.sethforprivacy.com",
"instances": [
"https://gowogle.voring.me",
"https://s.tokhmi.xyz",
"https://search.albony.xyz",
"https://search.dr460nf1r3.org",
"https://search.garudalinux.org",
"https://search.nezumi.party",
"https://search.notrustverify.ch",
"https://search.sethforprivacy.com",
"https://search.snine.nl",
"https://wg.vern.cc",
"https://wgl.frail.duckdns.org",
"https://whoogle-search--replitcomreside.repl.co",
"https://whoogle.datura.network",
"https://whoogle.dcs0.hu",
"https://whoogle.ftw.lol",
"https://whoogle.hostux.net",
"https://whoogle.hxvy0.gq",
"https://whoogle.4040940.xyz",
"https://whoogle.lunar.icu",
"https://whoogle.no-logs.com",
"https://whoogle.privacydev.net",
"https://whoogle.ungovernable.men",
"https://whoogle.yepserver.xyz",
"https://whoogle2.ungovernable.men",
"https://whoogle3.ungovernable.men"
"https://whoogle.privacydev.net"
]
},
{
@ -300,38 +282,37 @@
"https://opnxng.com",
"https://paulgo.io",
"https://priv.au",
"https://s.datuan.dev",
"https://s.mble.dk",
"https://search.080609.xyz",
"https://search.blitzw.in",
"https://search.canine.tools",
"https://search.catboy.house",
"https://search.citw.lgbt",
"https://search.einfachzocken.eu",
"https://search.gcomm.ch",
"https://search.im-in.space",
"https://search.ipv6s.net",
"https://search.leptons.xyz",
"https://search.mdosch.de",
"https://search.nadeko.net",
"https://search.nerdvpn.de",
"https://search.ononoki.org",
"https://search.privacyredirect.com",
"https://search.projectsegfau.lt",
"https://search.rhscz.eu",
"https://search.rowie.at",
"https://search.sapti.me",
"https://search.tinfoil.ch",
"https://search.url4irl.com",
"https://searx.ankha.ac",
"https://searx.be",
"https://searx.dresden.network",
"https://searx.electroncash.de",
"https://searx.foobar.vip",
"https://searx.foss.family",
"https://searx.namejeff.xyz",
"https://searx.oloke.xyz",
"https://searx.ox2.fr",
"https://searx.perennialte.ch",
"https://searx.rhscz.eu",
"https://searx.tiekoetter.com",
"https://searxng.hweeren.com",
"https://searxng.f24o.zip",
"https://searxng.shreven.org",
"https://searxng.site",
"https://searxng.world",
@ -391,41 +372,6 @@
"https://cringe.whateveritworks.org"
]
},
{
"type": "librex",
"test_url": "/search.php?q=<%=query%>",
"fallback": "https://librex.myroware.eu",
"instances": [
"https://glass.prpl.wtf",
"https://libre-find.online",
"https://libre.blitzw.in",
"https://librex.nohost.network",
"https://librex.uk.to",
"https://librey.4o1x5.dev",
"https://librey.baczek.me",
"https://librey.darkness.services",
"https://librey.franklyflawless.org",
"https://librey.ix.tc",
"https://librey.milivojevic.in.rs",
"https://librey.myroware.net",
"https://librey.nirn.quest",
"https://librey.org",
"https://librey.retro-hax.net",
"https://lx.benike.me",
"https://ly.owo.si",
"https://search.ahwx.org",
"https://search.davidovski.xyz",
"https://search.funami.tech",
"https://search.pabloferreiro.es",
"https://search.revvy.de",
"https://search.seitan-ayoub.lol",
"https://search.technicalvoid.dev",
"https://search.uwabaki.party",
"https://search.zeroish.xyz",
"https://search2.ahwx.org",
"https://serp.catswords.net"
]
},
{
"type": "quetre",
"test_url": "/How-does-the-Z-boson-decay",
@ -589,33 +535,21 @@
"test_url": "/search.php?q=<%=query%>",
"fallback": "https://search.ahwx.org",
"instances": [
"https://glass.prpl.wtf",
"https://libre-find.online",
"https://libre.blitzw.in",
"https://librex.nohost.network",
"https://librex.uk.to",
"https://librey.4o1x5.dev",
"https://librey.baczek.me",
"https://librey.darkness.services",
"https://librey.franklyflawless.org",
"https://librey.ix.tc",
"https://librey.milivojevic.in.rs",
"https://librey.myroware.net",
"https://librey.nirn.quest",
"https://librey.nube-gran.de",
"https://librey.org",
"https://librey.retro-hax.net",
"https://lx.benike.me",
"https://librey.sny.sh",
"https://ly.owo.si",
"https://search.ahwx.org",
"https://search.davidovski.xyz",
"https://search.funami.tech",
"https://search.pabloferreiro.es",
"https://search.liv.town",
"https://search.revvy.de",
"https://search.seitan-ayoub.lol",
"https://search.technicalvoid.dev",
"https://search.uwabaki.party",
"https://search.zeroish.xyz",
"https://search2.ahwx.org",
"https://serp.catswords.net"
]
},
@ -627,6 +561,7 @@
"https://bandcamp.lurkmore.com",
"https://tent.bloat.cat",
"https://tent.deep-swarm.xyz",
"https://tent.qunn.link",
"https://tent.sny.sh",
"https://tn.vern.cc"
]

View File

@ -4,21 +4,21 @@
"test_url": "/r/popular",
"fallback": "https://redlib.freedit.eu",
"instances": [
"https://l.opnxng.com",
"https://r.darrennathanael.com",
"https://libreddit.privacydev.net",
"https://red.arancia.click",
"https://red.artemislena.eu",
"https://red.ngn.tf",
"https://reddit.nerdvpn.de",
"https://redlib.baczek.me",
"https://redlib.catsarch.com",
"https://redlib.ducks.party",
"https://redlib.kittywi.re",
"https://redlib.nadeko.net",
"https://redlib.privacy.com.de",
"https://redlib.privacyredirect.com",
"https://rl.bloat.cat",
"https://rl.rootdo.com",
"https://safereddit.com"
"https://redlib.private.coffee",
"https://redlib.seasi.dev",
"https://rl.bloat.cat"
]
},
{
@ -26,21 +26,21 @@
"test_url": "/r/popular",
"fallback": "https://redlib.freedit.eu",
"instances": [
"https://l.opnxng.com",
"https://r.darrennathanael.com",
"https://libreddit.privacydev.net",
"https://red.arancia.click",
"https://red.artemislena.eu",
"https://red.ngn.tf",
"https://reddit.nerdvpn.de",
"https://redlib.baczek.me",
"https://redlib.catsarch.com",
"https://redlib.ducks.party",
"https://redlib.kittywi.re",
"https://redlib.nadeko.net",
"https://redlib.privacy.com.de",
"https://redlib.privacyredirect.com",
"https://rl.bloat.cat",
"https://rl.rootdo.com",
"https://safereddit.com"
"https://redlib.private.coffee",
"https://redlib.seasi.dev",
"https://rl.bloat.cat"
]
},
{
@ -80,6 +80,7 @@
"https://ig.opnxng.com",
"https://proxigram.lunar.icu",
"https://gram.whatever.social",
"https://ig.snine.nl",
"https://ig.floppa.one",
"https://proxigram.kyun.li"
]
@ -89,9 +90,7 @@
"test_url": "/watch?v=eBGIQ7ZuuiU",
"fallback": "https://invidious.snopyta.org",
"instances": [
"https://inv.nadeko.net",
"https://invidious.nerdvpn.de",
"https://yewtu.be"
"https://inv.nadeko.net"
]
},
{
@ -118,8 +117,10 @@
"test_url": "/jack/status/20",
"fallback": "https://nitter.net",
"instances": [
"https://nitter.net",
"https://nitter.poast.org",
"https://nitter.privacydev.net",
"https://nitter.privacyredirect.com",
"https://xcancel.com"
]
},
@ -188,9 +189,11 @@
"https://i.habedieeh.re",
"https://imgur.010032.xyz",
"https://imgur.artemislena.eu",
"https://imgur.fsky.io",
"https://imgur.nerdvpn.de",
"https://ri.nadeko.net",
"https://rimgo.4o1x5.dev",
"https://rimgo.astrial.org",
"https://rimgo.bloat.cat",
"https://rimgo.bus-hit.me",
"https://rimgo.canine.tools",
@ -206,6 +209,7 @@
"https://rimgo.in.projectsegfau.lt",
"https://rimgo.lunar.icu",
"https://rimgo.nohost.network",
"https://rimgo.perennialte.ch",
"https://rimgo.privacyredirect.com",
"https://rimgo.projectsegfau.lt",
"https://rimgo.pussthecat.org",
@ -214,7 +218,6 @@
"https://rimgo.thebunny.zone",
"https://rimgo.totaldarkness.net",
"https://rimgo.us.projectsegfau.lt",
"https://rimgo.whateveritworks.org",
"https://rmgur.com"
]
},
@ -223,25 +226,10 @@
"test_url": "/search?cookies_disabled=1&q=<%=query%>",
"fallback": "https://search.sethforprivacy.com",
"instances": [
"https://gowogle.voring.me",
"https://s.tokhmi.xyz",
"https://search.albony.xyz",
"https://search.dr460nf1r3.org",
"https://search.nezumi.party",
"https://search.notrustverify.ch",
"https://search.sethforprivacy.com",
"https://wg.vern.cc",
"https://wgl.frail.duckdns.org",
"https://whoogle-search--replitcomreside.repl.co",
"https://whoogle.datura.network",
"https://whoogle.dcs0.hu",
"https://whoogle.ftw.lol",
"https://whoogle.hostux.net",
"https://whoogle.hxvy0.gq",
"https://whoogle.lunar.icu",
"https://whoogle.no-logs.com",
"https://whoogle.privacydev.net",
"https://whoogle.yepserver.xyz"
"https://whoogle.privacydev.net"
]
},
{
@ -271,38 +259,37 @@
"https://opnxng.com",
"https://paulgo.io",
"https://priv.au",
"https://s.datuan.dev",
"https://s.mble.dk",
"https://search.080609.xyz",
"https://search.blitzw.in",
"https://search.canine.tools",
"https://search.catboy.house",
"https://search.citw.lgbt",
"https://search.einfachzocken.eu",
"https://search.gcomm.ch",
"https://search.im-in.space",
"https://search.ipv6s.net",
"https://search.leptons.xyz",
"https://search.mdosch.de",
"https://search.nadeko.net",
"https://search.nerdvpn.de",
"https://search.ononoki.org",
"https://search.privacyredirect.com",
"https://search.projectsegfau.lt",
"https://search.rhscz.eu",
"https://search.rowie.at",
"https://search.sapti.me",
"https://search.tinfoil.ch",
"https://search.url4irl.com",
"https://searx.ankha.ac",
"https://searx.be",
"https://searx.dresden.network",
"https://searx.electroncash.de",
"https://searx.foobar.vip",
"https://searx.foss.family",
"https://searx.namejeff.xyz",
"https://searx.oloke.xyz",
"https://searx.ox2.fr",
"https://searx.perennialte.ch",
"https://searx.rhscz.eu",
"https://searx.tiekoetter.com",
"https://searxng.hweeren.com",
"https://searxng.f24o.zip",
"https://searxng.shreven.org",
"https://searxng.site",
"https://searxng.world",
@ -360,41 +347,6 @@
"https://cringe.whateveritworks.org"
]
},
{
"type": "librex",
"test_url": "/search.php?q=<%=query%>",
"fallback": "https://librex.myroware.eu",
"instances": [
"https://glass.prpl.wtf",
"https://libre-find.online",
"https://libre.blitzw.in",
"https://librex.nohost.network",
"https://librex.uk.to",
"https://librey.4o1x5.dev",
"https://librey.baczek.me",
"https://librey.darkness.services",
"https://librey.franklyflawless.org",
"https://librey.ix.tc",
"https://librey.milivojevic.in.rs",
"https://librey.myroware.net",
"https://librey.nirn.quest",
"https://librey.org",
"https://librey.retro-hax.net",
"https://lx.benike.me",
"https://ly.owo.si",
"https://search.ahwx.org",
"https://search.davidovski.xyz",
"https://search.funami.tech",
"https://search.pabloferreiro.es",
"https://search.revvy.de",
"https://search.seitan-ayoub.lol",
"https://search.technicalvoid.dev",
"https://search.uwabaki.party",
"https://search.zeroish.xyz",
"https://search2.ahwx.org",
"https://serp.catswords.net"
]
},
{
"type": "quetre",
"test_url": "/How-does-the-Z-boson-decay",
@ -537,6 +489,7 @@
"https://4get.konakona.moe",
"https://4get.lunar.icu",
"https://4get.lvkaszus.pl",
"https://4get.perennialte.ch",
"https://4get.psily.garden",
"https://4get.seitan-ayoub.lol",
"https://4get.silly.computer",
@ -551,33 +504,21 @@
"test_url": "/search.php?q=<%=query%>",
"fallback": "https://search.ahwx.org",
"instances": [
"https://glass.prpl.wtf",
"https://libre-find.online",
"https://libre.blitzw.in",
"https://librex.nohost.network",
"https://librex.uk.to",
"https://librey.4o1x5.dev",
"https://librey.baczek.me",
"https://librey.darkness.services",
"https://librey.franklyflawless.org",
"https://librey.ix.tc",
"https://librey.milivojevic.in.rs",
"https://librey.myroware.net",
"https://librey.nirn.quest",
"https://librey.nube-gran.de",
"https://librey.org",
"https://librey.retro-hax.net",
"https://lx.benike.me",
"https://librey.sny.sh",
"https://ly.owo.si",
"https://search.ahwx.org",
"https://search.davidovski.xyz",
"https://search.funami.tech",
"https://search.pabloferreiro.es",
"https://search.liv.town",
"https://search.revvy.de",
"https://search.seitan-ayoub.lol",
"https://search.technicalvoid.dev",
"https://search.uwabaki.party",
"https://search.zeroish.xyz",
"https://search2.ahwx.org",
"https://serp.catswords.net"
]
},
@ -589,6 +530,7 @@
"https://bandcamp.lurkmore.com",
"https://tent.bloat.cat",
"https://tent.deep-swarm.xyz",
"https://tent.qunn.link",
"https://tent.sny.sh",
"https://tn.vern.cc"
]

View File

@ -4,6 +4,7 @@ import (
"errors"
"math/rand"
"regexp"
"strings"
)
type RegexMapping struct {
@ -24,13 +25,13 @@ var regexMap = []RegexMapping{
},
{
// Reddit
Pattern: regexp.MustCompile(`reddit\.com|libreddit|redlib`),
Targets: []string{"libreddit", "redlib"},
Pattern: regexp.MustCompile(`reddit\.com|libreddit|redlib|teddit`),
Targets: []string{"libreddit", "redlib", "teddit"},
},
{
// Google Search
Pattern: regexp.MustCompile(`google\.com|whoogle|searx|searxng`),
Targets: []string{"whoogle", "searx", "searxng"},
Targets: []string{"whoogle", "searxng"},
},
{
// Instagram
@ -59,8 +60,8 @@ var regexMap = []RegexMapping{
},
{
// Google Translate
Pattern: regexp.MustCompile(`translate\.google\.com|lingva`),
Targets: []string{"lingva"},
Pattern: regexp.MustCompile(`translate\.google\.com|lingva|simplytranslate`),
Targets: []string{"lingva", "simplytranslate"},
},
{
// TikTok
@ -92,15 +93,47 @@ var regexMap = []RegexMapping{
Pattern: regexp.MustCompile(`stackoverflow\.com|anonymousoverflow`),
Targets: []string{"anonymousoverflow"},
},
{
// Genius
Pattern: regexp.MustCompile(`genius\.com|dumb`),
Targets: []string{"dumb"},
},
{
// 4get
// Note: Could be used for redirecting other search engine
// requests, but would need special handling
Pattern: regexp.MustCompile("4get"),
Targets: []string{"4get"},
},
{
// LibreY
// Note: Could be used for redirecting other search engine
// requests, but would need special handling
Pattern: regexp.MustCompile("librex|librey"),
Targets: []string{"librey"},
},
{
// Tent
// Note: This is a Bandcamp alternative, but the endpoints are
// completely different than Bandcamp, so 1-to-1 mapping of URLs
// is not possible without some additional work
Pattern: regexp.MustCompile("tent"),
Targets: []string{"tent"},
},
}
func MatchRequest(service string) (string, error) {
for _, mapping := range regexMap {
hasMatch := mapping.Pattern.MatchString(service)
if !hasMatch {
continue
}
if !strings.Contains(service, ".") {
return service, nil
}
index := rand.Intn(len(mapping.Targets))
value := mapping.Targets[index]
return value, nil

View File

@ -47,7 +47,6 @@ func GetServicesFileName() string {
return serviceJSON
}
func FetchServicesFile(serviceJSON string) ([]byte, error) {
resp, err := http.Get(baseRepoLink + serviceJSON)
if err != nil {