mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Remove alt frontends from search
This commit is contained in:
parent
9b6d4728fc
commit
4d2be6ff74
1 changed files with 18 additions and 13 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{
|
||||||
let
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
inherit (lib) types mkOption mkEnableOption;
|
inherit (lib) types mkOption mkEnableOption;
|
||||||
cfg = config.mods.server.search;
|
cfg = config.mods.server.search;
|
||||||
port = config.mods.server.nginx.ports.search;
|
port = config.mods.server.nginx.ports.search;
|
||||||
|
|
@ -20,22 +24,23 @@ in {
|
||||||
server.bind_address = "0.0.0.0";
|
server.bind_address = "0.0.0.0";
|
||||||
server.secret_key = "temporary-before-sops";
|
server.secret_key = "temporary-before-sops";
|
||||||
|
|
||||||
enabled_plugins = [ "Hostnames plugin" "Tracker URL remover" ];
|
enabled_plugins = ["Hostnames plugin" "Tracker URL remover"];
|
||||||
hostnames.remove = [ "(.*.)?facebook.com$" ];
|
hostnames.remove = ["(.*.)?facebook.com$"];
|
||||||
hostnames.replace = {
|
hostnames.replace = {
|
||||||
# Self-hosted
|
# Self-hosted
|
||||||
"(.*.)?reddit.com$" = "reddit.muon.host";
|
# "(.*.)?reddit.com$" = "reddit.muon.host";
|
||||||
# "(.*.)?youtube.com$" = "videos.muon.host"; # TODO not working
|
# "(.*.)?youtube.com$" = "videos.muon.host"; # TODO not working
|
||||||
|
|
||||||
# External
|
# External
|
||||||
"(.*.)?youtube.com$" = "invidious.nerdvpn.de";
|
"(.*.)?reddit.com$" = "old.reddit.com";
|
||||||
"(.*.)?imdb.com$" = "libremdb.iket.me";
|
# "(.*.)?youtube.com$" = "invidious.nerdvpn.de";
|
||||||
"(.*.)?imgur.com$" = "rimgo.privacyredirect.com";
|
# "(.*.)?imdb.com$" = "libremdb.iket.me";
|
||||||
"(.*.)?twitch.com$" = "safetwitch.privacyredirect.com";
|
# "(.*.)?imgur.com$" = "rimgo.privacyredirect.com";
|
||||||
"(.*.)?wikipedia.com$" = "wikiless.privacyredirect.com";
|
# "(.*.)?twitch.com$" = "safetwitch.privacyredirect.com";
|
||||||
"(.*.)?medium.com$" = "scribe.privacyredirect.com";
|
# "(.*.)?wikipedia.com$" = "wikiless.privacyredirect.com";
|
||||||
"(.*.)?stackoverflow.com$" = "anonymousoverflow.privacyredirect.com";
|
# "(.*.)?medium.com$" = "scribe.privacyredirect.com";
|
||||||
"(.*.)?github.com$" = "gothub.privacyredirect.com";
|
# "(.*.)?stackoverflow.com$" = "anonymousoverflow.privacyredirect.com";
|
||||||
|
# "(.*.)?github.com$" = "gothub.privacyredirect.com";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue