config.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. class config{
  3. // Welcome to the 4get configuration file
  4. // When updating your instance, please make sure this file isn't missing
  5. // any parameters.
  6. // 4get version. Please keep this updated
  7. const VERSION = 6;
  8. // Will be shown pretty much everywhere.
  9. const SERVER_NAME = "4get";
  10. // Will be shown in <meta> tag on home page
  11. const SERVER_SHORT_DESCRIPTION = "They live in our walls!";
  12. // Will be shown in server list ping (null for no description)
  13. const SERVER_LONG_DESCRIPTION = null;
  14. // Add your own themes in "static/themes". Set to "Dark" for default theme.
  15. // Eg. To use "static/themes/Cream.css", specify "Cream".
  16. const DEFAULT_THEME = "Dark";
  17. // Enable the API?
  18. const API_ENABLED = true;
  19. // Bot protection
  20. // 4get.ca has been hit with 250k bot reqs every single day for months
  21. // you probably want to enable this if your instance is public...
  22. // 0 = disabled
  23. // 1 = ask for image captcha (requires image dataset & imagick 6.9.11-60)
  24. // @TODO: 2 = invite only (users needs a pass)
  25. const BOT_PROTECTION = 0;
  26. // Maximal number of searches per captcha key/pass issued. Counter gets
  27. // reset on every APCU cache clear (should happen once a day)
  28. const MAX_SEARCHES = 100;
  29. // if BOT_PROTECTION is set to 1, specify the available datasets here
  30. // images should be named from 1.png to X.png, and be 100x100 in size
  31. // Eg. data/captcha/birds/1.png up to 2263.png
  32. const CAPTCHA_DATASET = [
  33. // example:
  34. // ["birds", 2263],
  35. // ["fumo_plushies", 1006],
  36. // ["minecraft", 848]
  37. ];
  38. // List of domains that point to your servers. Include your tor/i2p
  39. // addresses here! Must be a valid URL. Won't affect links placed on
  40. // the homepage.
  41. const ALT_ADDRESSES = [
  42. //"https://4get.alt-tld",
  43. //"http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion"
  44. ];
  45. // Known 4get instances. MUST use the https protocol if your instance uses
  46. // it. Is used to generate a distributed list of instances.
  47. // To appear in the list of an instance, contact the host and if everyone added
  48. // eachother your serber should appear everywhere.
  49. const INSTANCES = [
  50. "https://4get.ca",
  51. "https://4get.zzls.xyz",
  52. "https://4getus.zzls.xyz",
  53. "https://4get.silly.computer",
  54. "https://4g.opnxng.com",
  55. "https://4get.konakona.moe",
  56. "https://4get.lvkaszus.pl",
  57. "https://4g.ggtyler.dev",
  58. "https://4get.perennialte.ch",
  59. "https://4get.sihj.net",
  60. "https://4get.hbubli.cc",
  61. "https://4get.plunked.party",
  62. "https://4get.seitan-ayoub.lol"
  63. ];
  64. // Default user agent to use for scraper requests. Sometimes ignored to get specific webpages
  65. // Changing this might break things.
  66. const USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/120.0";
  67. // Proxy pool assignments for each scraper
  68. // false = Use server's raw IP
  69. // string = will load a proxy list from data/proxies
  70. // Eg. "onion" will load data/proxies/onion.txt
  71. const PROXY_DDG = false; // duckduckgo
  72. const PROXY_BRAVE = false;
  73. const PROXY_FB = false; // facebook
  74. const PROXY_GOOGLE = false;
  75. const PROXY_MARGINALIA = false;
  76. const PROXY_MOJEEK = false;
  77. const PROXY_SC = false; // soundcloud
  78. const PROXY_SPOTIFY = false;
  79. const PROXY_WIBY = false;
  80. const PROXY_CURLIE = false;
  81. const PROXY_YT = false; // youtube
  82. const PROXY_YEP = false;
  83. const PROXY_PINTEREST = false;
  84. const PROXY_FTM = false; // findthatmeme
  85. const PROXY_IMGUR = false;
  86. const PROXY_YANDEX_W = false; // yandex web
  87. const PROXY_YANDEX_I = false; // yandex images
  88. const PROXY_YANDEX_V = false; // yandex videos
  89. //
  90. // Scraper-specific parameters
  91. //
  92. // SOUNDCLOUD
  93. // Get these parameters by making a search on soundcloud with network
  94. // tab open, then filter URLs using "search?q=". (No need to login)
  95. const SC_USER_ID = "361066-632137-891392-693457";
  96. const SC_CLIENT_TOKEN = "nUB9ZvnjRiqKF43CkKf3iu69D8bboyKY";
  97. // MARGINALIA
  98. // Get an API key by contacting the Marginalia.nu maintainer. The "public" key
  99. // works but is almost always rate-limited.
  100. const MARGINALIA_API_KEY = "public";
  101. }