config.default.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * Insipid
  4. * Personal web-bookmark-system
  5. *
  6. * Copyright 2016-2023 Johannes Keßler
  7. *
  8. * Development starting from 2011: Johannes Keßler
  9. * https://www.bananas-playground.net/projekt/insipid/
  10. *
  11. * creator:
  12. * Luke Reeves <luke@neuro-tech.net>
  13. *
  14. * This program is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation, either version 3 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  26. *
  27. */
  28. # database config
  29. const DB_HOST = '127.0.0.1'; # Address of the database server
  30. const DB_USERNAME = 'user'; # Username to access the database server and database itself
  31. const DB_PASSWORD = 'test'; # Password for username
  32. const DB_NAME = 'insipid'; # Database name on your database server
  33. const DB_PREFIX = 'insipid'; # a _ is added automatically as separation
  34. # user config
  35. const FRONTEND_USERNAME = 'han';
  36. const FRONTEND_PASSWORD = 'solo';
  37. # absolute path of webroot
  38. const ABSOLUTE_PATH = '/path/to/insipid/webroot';
  39. # log file location. Needs read and write permission for the webservice user
  40. const LOGFILE = ABSOLUTE_PATH.'/insipid.log';
  41. # relative to absolute path the name of the storage folder
  42. # Needs read and write permission for the webservice user
  43. const LOCAL_STORAGE = 'localdata';
  44. # complete restricted access, not only the private links or the edit functions
  45. # username and password see above
  46. const USE_PAGE_AUTH = false;
  47. # results per page
  48. const RESULTS_PER_PAGE = 12;
  49. # language setting
  50. # default is eng
  51. # valid values to match the files are: https://de.wikipedia.org/wiki/ISO_639#ISO_639-3
  52. const FRONTEND_LANGUAGE = 'eng';
  53. # if the location of email-import.php needs to be in a web accessible folder
  54. # you can protect it by setting EMAIL_JOB_PROTECT to true
  55. # and EMAIL_JOB_PROTECT_SECRET to a special secret string
  56. # AND remove the default provided .htaccess file in the job folder
  57. const EMAIL_JOB_PROTECT = false; # Default false
  58. const EMAIL_JOB_PROTECT_SECRET = 'YOUR_SOME_SECRET_STRING'; # Your own secret string
  59. # settings for importing from e-mail
  60. # SSL/TLS only
  61. # IMAP (reading), SMTP (sending)
  62. const EMAIL_SERVER = '';
  63. const EMAIL_SERVER_USER = '';
  64. const EMAIL_SERVER_PASS = '';
  65. const EMAIL_SERVER_PORT_IMAP = 993;
  66. const EMAIL_SERVER_PORT_SMTP = 465;
  67. const EMAIL_SERVER_MAILBOX = 'INBOX'; # default INBOX
  68. const EMAIL_MARKER = 'to-insipid- ';
  69. const EMAIL_ARCHIVE_FOLDER = 'archive';
  70. const EMAIL_REPORT_BACK = false;
  71. const EMAIL_REPLY_BACK_VALID = '';
  72. const EMAIL_REPLY_BACK_ADDRESS = '';
  73. const EMAIL_REPLY_BACK_SUBJECT = 'Insipid email import response';
  74. # Set this to true to enable the option in the link form
  75. # You need the API Key from your browserless.io account
  76. # See whole-page-snapshot.txt for more details
  77. const COMPLETE_PAGE_SCREENSHOT = false;
  78. const COMPLETE_PAGE_SCREENSHOT_BROWSERLESS_API = "https://chrome.browserless.io/screenshot?token=";
  79. const COMPLETE_PAGE_SCREENSHOT_API_KEY = 'YOUR-API-KEY';
  80. const COMPLETE_PAGE_SCREEENSHOT_BROWSERLESS_TIMEOUT = 10000; # milliseconds
  81. const COMPLETE_PAGE_SCREEENSHOT_BROWSERLESS_IMAGE_QUALITY = 75; # quality for jpeg
  82. # Timezone setting
  83. const TIMEZONE = 'Europe/Berlin';
  84. # debug
  85. const DEBUG = false;
  86. const QUERY_DEBUG = false;