Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.js 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "wikipp" : {
  3. "script" : "/wikipp",
  4. "media" :"/media",
  5. //"syntax_highlighter" : "/media/sh",
  6. "disable_registration" : false,
  7. "languages" : {
  8. "en" : "en_US.UTF-8" ,
  9. "he" : "he_IL.UTF-8" ,
  10. "ru" : "ru_RU.UTF-8" ,
  11. "pl" : "pl_PL.UTF-8"
  12. },
  13. // Sqlite3 Sample Connection String
  14. "connection_string" : "sqlite3:db=./db/wikipp.db;@pool_size=16",
  15. //
  16. // PostgreSQL Sample Connection String
  17. // "connection_string" : "postgresql:dbname=wikipp;@pool_size=16",
  18. //
  19. // MySQL Sample Connection String
  20. //
  21. // "connection_string" : "mysql:database=wikipp;user=root;password=root;@pool_size=16",
  22. //
  23. // In Some cases mysql works faster without prepared statements as it uses query cache, so you
  24. // may change this string to:
  25. //
  26. // "connection_string" : "mysql:database=wikipp;user=root;password=root;@pool_size=16;@use_prepared=off",
  27. //
  28. },
  29. "service" : {
  30. "api" : "http",
  31. "port" : 8080,
  32. // "api" : "fastcgi",
  33. // "socket" : "/tmp/wikipp.sock"
  34. // "socket" : "stdin"
  35. },
  36. "session" : {
  37. "expire" : "renew",
  38. "location" : "client",
  39. "timeout" : 2592000, // One month 24*3600*30
  40. "cookies" : {
  41. "prefix" : "wikipp"
  42. },
  43. "server" : {
  44. "storage" : "files"
  45. },
  46. "client" : {
  47. "encryptor" : "aes",
  48. "key" : "9bc6dbda707cb72ea1205dd5b1c90464"
  49. }
  50. },
  51. "views" : {
  52. "paths" : [ "./build"] ,
  53. "skins" : [ "view" ] ,
  54. //"auto_reload" : true
  55. },
  56. "file_server" : {
  57. "enable": true,
  58. "doument_root" : "."
  59. },
  60. "localization" : {
  61. // "backend" : "std", you may switch if for performance enhanecements
  62. "messages" : {
  63. "paths" : [ "./build/locale"],
  64. "domains" : [ "wikipp" ]
  65. },
  66. "locales" : [ "he_IL.UTF-8" , "en_US.UTF-8", "ru_RU.UTF-8", "pl_PL.UTF-8" ]
  67. },
  68. "http" : {
  69. "script_names" : [ "/wikipp" ]
  70. },
  71. "logging" : {
  72. "level" : "info",
  73. "syslog" : {
  74. "enable": true,
  75. "id" : "WikiPP"
  76. },
  77. "file" : {
  78. "name" : "./wikipp.log",
  79. "append" : true
  80. }
  81. },
  82. "cache" : {
  83. "backend" : "thread_shared",
  84. "limit" : 100, // items - thread cache
  85. },
  86. "security" : {
  87. "csrf" : { "enable" : true }
  88. // "multipart_form_data_limit" : 65536, // KB
  89. // "content_length_limit" : 1024, // KB
  90. // "uploads_path" : "" // temporary directory
  91. //
  92. // You may change to true for debugging only
  93. // "display_error_message" : false
  94. }
  95. }