config.default.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  15. *
  16. * 2019 - 2023 https://://www.bananas-playground.net/projekt/selfpaste
  17. */
  18. # this is your installation secret. Could be anything.
  19. # Think of it as a key. Change it often to avoid any abuse.
  20. # The description will be used in the log files
  21. const SELFPASTE_UPLOAD_SECRET =
  22. array(
  23. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret 1',
  24. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret'
  25. );
  26. # creation of a paste and which secret was used into logs/create.log file
  27. const LOG_CREATION = true;
  28. # this is the default storage location. If you decide to move, then make sure
  29. # to move the included .htaccess with it to protect the direct access
  30. const SELFPASTE_UPLOAD_DIR = 'pasties';
  31. # those are the allowed file types.
  32. # Make sure you read the README and documentation!
  33. const SELFPASTE_ALLOWED_FILETYPES = 'text/plain,text/comma-separated-values,text/css,text/xml,text/x-php,text/x-perl,text/x-shellscript,text/html,text/javascript,text/c-x,text/x-makefile';
  34. # this is your domain and path on which selfpaste is accessible
  35. # needed to respond with the correct link for your paste
  36. # please NO / at the end
  37. const SELFPASTE_URL = 'http://your.tld/path/selfpaste/webroot';
  38. # time in days how long a paste will be available. Default 30 days
  39. const SELFPASTE_PASTE_LIFETIME = 30;
  40. # time in seconds how long the flood protection should take action. Default 30sec
  41. const SELFPASTE_FLOOD_LIFETIME = 30;