config.default.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
  5. *
  6. * You should have received a copy of the
  7. * COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
  8. * along with this program. If not, see http://www.sun.com/cddl/cddl.html
  9. *
  10. * 2019 - 2020 https://://www.bananas-playground.net/projekt/selfpaste
  11. */
  12. # this is your installation secret. Could be anything.
  13. # Think of it as a key. Change it often to avoid any abuse.
  14. # The description will be used in the log files
  15. define('SELFPASTE_UPLOAD_SECRET',
  16. array(
  17. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret 1',
  18. 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret'
  19. )
  20. );
  21. # creation of a paste and which secret was used into logs/create.log file
  22. define('LOG_CREATION',true);
  23. # this is the default storage location. If you decide to move, then make sure
  24. # to move the included .htaccess with it to protect the direct access
  25. define('SELFPASTE_UPLOAD_DIR','pasties');
  26. # those are the allowed file types.
  27. # Make sure you read the README and documentation!
  28. define('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');
  29. # this is your domain and path on which selfpaste is accessible
  30. # needed to respond with the correct link for your paste
  31. # please NO / at the end
  32. define('SELFPASTE_URL','http://your.tld/path/selfpaste/webroot');
  33. # time in days how long a paste will be available. Default 30 days
  34. define('SELFPASTE_PASTE_LIFETIME',30);
  35. # time in seconds how long the flood protection should take action. Default 30sec
  36. define('SELFPASTE_FLOOD_LIFETIME',30);