config.default.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. # debug setting
  19. const DEBUG = false;
  20. # timezone settings
  21. const TIMEZONE = 'Europe/Berlin';
  22. # path settings
  23. const PATH_ABSOLUTE = '/www/htdocs/';
  24. const PATH_SYSTEMOUT = PATH_ABSOLUTE.'/logs';
  25. const ERROR_LOG_FILE = PATH_SYSTEMOUT.'/selfpaste-error.log';
  26. const CREATE_LOG = PATH_SYSTEMOUT.'/selfpaste-create.log';
  27. # this is your installation secret. Could be anything.
  28. # Think of it as a key. Change it often to avoid any abuse.
  29. # The description will be used in the log files
  30. const SELFPASTE_UPLOAD_SECRET =
  31. array(
  32. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret 1',
  33. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret'
  34. );
  35. # creation of a paste and which secret was used into logs/create.log file
  36. const LOG_CREATION = true;
  37. # this is the default storage location. If you decide to move, then make sure
  38. # to move the included .htaccess with it to protect the direct access
  39. const SELFPASTE_UPLOAD_DIR = 'pasties';
  40. # those are the allowed file types.
  41. # Make sure you read the README and documentation!
  42. 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';
  43. # this is your domain and path on which selfpaste is accessible
  44. # needed to respond with the correct link for your paste
  45. # please NO / at the end
  46. const SELFPASTE_URL = 'http://your.tld/path/selfpaste/webroot';
  47. # time in days how long a paste will be available. Default 30 days
  48. const SELFPASTE_PASTE_LIFETIME = 30;
  49. # time in seconds how long the flood protection should take action. Default 30sec
  50. const SELFPASTE_FLOOD_LIFETIME = 30;