config.default.php 1.4 KB

1234567891011121314151617181920212223242526272829
  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. define('SELFPASTE_UPLOAD_SECRET','PLEASE CHANGE YOUR SECRET');
  15. # this is the default storage location. If you decide to move, then make sure
  16. # to move the included .htaccess with it to protect the direct access
  17. define('SELFPASTE_UPLOAD_DIR','pasties');
  18. # those are the allowed file types.
  19. # Make sure you read the README and documentation!
  20. define('SELFPASTE_ALLOWED_FILETYPES','text/plain,text/comma-separated-values,text/css,text/xml,text/x-php');
  21. # this is your domain and path on which selfpaste is accessible
  22. # needed to respond with the correct link for your paste
  23. # please NO / at the end
  24. define('SELFPASTE_URL','http://your.tld/path/selfpaste/webroot');
  25. # time in days how long a paste will be available. Default 30 days
  26. define('SELFPASTE_PASTE_LIFETIME',30);
  27. # time in seconds how long the flood protection should take action. Default 30sec
  28. define('SELFPASTE_FLOOD_LIFETIME',30);