Commenting optional settings

This commit is contained in:
q
2025-12-15 22:20:56 -05:00
parent 2e74637c79
commit d281e00405

View File

@@ -30,29 +30,34 @@ searx.setSearxInstance(searxng_server);
// --------- The following settings are all optional: ---------------------- // --------- The following settings are all optional: ----------------------
// This allows you to use a different Matrix user and homeserver for uploading the image results. If this is not provided then the bot's Matrix ID and homeserver will be used instead. // This allows you to use a different Matrix user and homeserver for uploading the image results. If this is not provided then the bot's Matrix ID and homeserver will be used instead.
/*
const uploadMatrixClient = sdk.createClient({ const uploadMatrixClient = sdk.createClient({
baseUrl: "https://midov.pl", baseUrl: "https://midov.pl",
accessToken: "syt_AnotherRealAccessTokenDoNotCommit", accessToken: "syt_AnotherRealAccessTokenDoNotCommit",
userId: "@upload_leech:midov.pl" userId: "@upload_leech:midov.pl"
}); });
searx.setUploadMatrixClient(uploadMatrixClient); searx.setUploadMatrixClient(uploadMatrixClient);
*/
// Set which rooms are not allowed to search for images. // Set which rooms are not allowed to search for images.
searx.setBlacklistedImgRooms(["!wehateimagesearching:matrix.org", "!wehateittoo:nerdsin.space"]); //searx.setBlacklistedImgRooms(["!wehateimagesearching:matrix.org", "!wehateittoo:nerdsin.space"]);
// Set which rooms are not allowed to search for images with safesearch disabled. // Set which rooms are not allowed to search for images with safesearch disabled.
searx.setBlacklistedUimgRooms(["!sfw:matrix.org", "!church:nerdsin.space"]); //searx.setBlacklistedUimgRooms(["!sfw:matrix.org", "!church:nerdsin.space"]);
// Set the amount of time in milliseconds users in a room are required to wait between searches (and allow some users to be immune to the cooldown and send as many as they want) // Set the amount of time in milliseconds users in a room are required to wait between searches (and allow some users to be immune to the cooldown and send as many as they want)
/*
searx.setCooldownImmuneUsers(["@q:glowers.club", "@romanticusgondolaticus:glowers.club"]); searx.setCooldownImmuneUsers(["@q:glowers.club", "@romanticusgondolaticus:glowers.club"]);
searx.setRoomCooldowns(new Map([ searx.setRoomCooldowns(new Map([
["!sCbWouzHiLEyfOAaSJ:midov.pl",30000] ["!sCbWouzHiLEyfOAaSJ:midov.pl",30000]
])); ]));
*/
// Lets you set which URL parameters are used in SearXNG queries. Useful for changing which search engines are included and excluded. See SearXNG's documentation for all of the parameters available. // Lets you set which URL parameters are used in SearXNG queries. Useful for changing which search engines are included and excluded. See SearXNG's documentation for all of the parameters available.
searx.setSearxParameters("disabled_engines=flickr__images"); //searx.setSearxParameters("disabled_engines=flickr__images");
// Lets you add a whitelist for a room. When added, only the users in that whitelist will be able to search. Other users will receive an error. // Lets you add a whitelist for a room. When added, only the users in that whitelist will be able to search. Other users will receive an error.
/*
searxng.setRoomUserWhitelists(new Map([ searxng.setRoomUserWhitelists(new Map([
["!blahblahblah:midov.pl", ["!blahblahblah:midov.pl",
[ [
@@ -61,6 +66,7 @@ searxng.setRoomUserWhitelists(new Map([
] ]
] ]
])); ]));
*/
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------