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.1KB

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