config.inc.sample 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * Copyright (c) 2016, 2024, 5 Mode
  4. * All rights reserved.
  5. *
  6. * This file is part of ApiGrave.
  7. *
  8. * ApiGrave is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * ApiGrave is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with ApiGrave. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. * config.inc
  22. *
  23. * ApiGrave configuration settings.
  24. *
  25. * @author Daniele Bonini <my25mb@aol.com>
  26. * @copyrights (c) 2021, 2024, 5 Mode
  27. */
  28. define('DEBUG', false);
  29. define('APP_NAME', "Api Grave");
  30. define('APP_TITLE', "Api Grave, your api our grave..");
  31. define('APP_SPLASH', true);
  32. define('APP_HOST', "yoursitename.xyz");
  33. define('APP_PATH', "var/www/YourApiGrave/Public");
  34. define('APP_ERROR_PATH', "var/www/YourApiGrave/Private/error");
  35. define('APP_API_PATH', "var/www/YourApiGrave/Private/api");
  36. // Default Locale, in two letters format
  37. define('APP_LOCALE', "EN");
  38. define('CACHE_HOST', "127.0.0.1");
  39. define('CACHE_PORT', "11211");
  40. define('CACHE_EXPIRE', 45);
  41. define('CACHE_APP_PREFIX', "APIG_tosqefv0ct_");
  42. $CONFIG = [
  43. 'DEBUG' => false,
  44. 'APP' => [
  45. 'NAME' => "Api Grave",
  46. 'TITLE' => "Api Grave, your api our grave..",
  47. 'SPLASH' => true,
  48. 'HOST' => "yoursitename.xyz",
  49. 'PATH' => "/var/www/YourApiGrave/Public",
  50. 'ERROR_PATH' => "/var/www/YourApiGrave/Private/error",
  51. 'API_PATH' => "/var/www/YourApiGrave/Private/api",
  52. 'LOCALE' => "EN",
  53. ],
  54. 'CACHE' => [
  55. 'HOST' => "127.0.0.1",
  56. 'PORT' => "11211",
  57. 'EXPIRE' => 45,
  58. 'APP_PREFIX' => "APIG_tosqefv0ct_",
  59. ]
  60. ];