LeanClub是高性能C++论坛系统。
注意:不建议在生产环境使用!
在线演示:https://leanclub.org/
特性速度非常快,20000RPSoni7iMac.
前端非常简洁
完全是Ajax和API
可以使用GoogleGitHubTwitterOAuth登录
要求GCC4.8
CMake2.8
(不支持Windows)
安装数据库
安装ApacheCouchdb
创建4个数据库:“category”“notification”“topics”和“user”
导入“databases”目录
环境
apt-getinstallbuild-essentialcmakelibcurl4-nss-devlibboost-all-devredis-serverlibtcmalloc-minimal4&&sudoln-s/usr/lib/libtcmalloc_minimal.so.4/usr/lib/libtcmalloc_minimal.so
Installhiredisfromsources(redis3misalreadyincluded)
配置cp src/config.h.example.h src/config.hvi src/config.h构建运行mkdir Buildcd Buildcmake ..make./leanclubNginxserver { listen 80; server_name leanclub.org; client_max_body_size MAX_UPLOAD_SIZE; root /path/to/leanclub/; location / { proxy_pass https://127.0.0.1:18080; proxy_redirect off; proxy_set_header X-Forwarded-For $http_x_forwarded_for; proxy_set_header Host leanclub.org; add_header X-XSS-Protection "1; mode=block"; add_header X-Frame-Options DENY; } # Cache the avatar (Optional) # location /info/ { # proxy_pass https://127.0.0.1:18080; # proxy_redirect off; # proxy_set_header X-Forwarded-For $http_x_forwarded_for; # proxy_set_header Host leanclub.org; # proxy_cache one; # proxy_cache_key "$request_uri"; # proxy_cache_valid 200 302 120m; # } location /static/ { expires 10d; } location /attachments/ { expires 365d; }}reverseproxy127.0.0.1:18080,andmapthe"static"and"attachments"folder.
关于此系统基于Crow
评论