Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config.js 2.3KB

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