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.

sample_config.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "wikipp" : {
  3. "script" : "/wikipp",
  4. "media" :"/media/",
  5. //
  6. // Set a path to hightligher to enable it
  7. //
  8. // "syntax_highlighter" : "/media/sh",
  9. //
  10. "disable_registration" : false,
  11. "languages" : {
  12. "en" : "en_US.UTF-8" ,
  13. "he" : "he_IL.UTF-8" ,
  14. "ru" : "ru_RU.UTF-8" ,
  15. "pl" : "pl_PL.UTF-8"
  16. },
  17. //
  18. // Setup connection string for DB
  19. //
  20. // Sqlite3 Sample Connection String
  21. //"connection_string" : "sqlite3:db=/var/wikipp/db/wikipp.db;@pool_size=16",
  22. //
  23. // PostgreSQL Sample Connection String
  24. // "connection_string" : "postgresql:dbname=wikipp;@pool_size=16",
  25. //
  26. // MySQL Sample Connection String
  27. //
  28. // "connection_string" : "mysql:database=wikipp;user=root;password=root;@pool_size=16",
  29. //
  30. // In Some cases mysql works faster without prepared statements as it uses query cache, so you
  31. // may change this string to:
  32. //
  33. // "connection_string" : "mysql:database=wikipp;user=root;password=root;@pool_size=16;@use_prepared=off",
  34. //
  35. },
  36. "service" : {
  37. "api" : "fastcgi",
  38. "socket" : "stdin"
  39. },
  40. "session" : {
  41. "expire" : "renew",
  42. "location" : "client",
  43. "timeout" : 2592000, // One month 24*3600*30
  44. "cookies" : {
  45. "prefix" : "wikipp"
  46. },
  47. "client" : {
  48. "cbc" : "aes",
  49. "hmac" : "sha1",
  50. // setup these values using
  51. //
  52. // cppcms_make_key --hmac sha1 --cbc aes
  53. //
  54. // "cbc_key" : "Generate your own!",
  55. // "hmac_key" : "Generate your own"
  56. }
  57. },
  58. "views" : {
  59. "paths" : [ "/usr/lib/wikipp"] ,
  60. "skins" : [ "view" ] ,
  61. },
  62. "localization" : {
  63. "messages" : {
  64. "paths" : [ "/usr/share/locale"],
  65. "domains" : [ "wikipp" ]
  66. },
  67. "locales" : [
  68. "he_IL.UTF-8" ,
  69. "en_US.UTF-8",
  70. "ru_RU.UTF-8",
  71. "pl_PL.UTF-8"
  72. ]
  73. },
  74. "logging" : {
  75. "level" : "info",
  76. //"syslog" : {
  77. // "enable": true,
  78. // "id" : "WikiPP"
  79. //},
  80. //"file" : {
  81. // "name" : "/var/log/wikipp/wikipp.log",
  82. // "append" : true
  83. //}
  84. },
  85. "cache" : {
  86. "backend" : "thread_shared",
  87. "limit" : 100, // items - thread cache
  88. },
  89. "security" : {
  90. "csrf" : { "enable" : true }
  91. }
  92. }