Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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