前言:
而今咱们对“开源论坛程序怎么安装”大体比较关心,我们都想要学习一些“开源论坛程序怎么安装”的相关文章。那么小编同时在网络上收集了一些有关“开源论坛程序怎么安装””的相关文章,希望朋友们能喜欢,兄弟们一起来学习一下吧!1,关于casnode
【casnode】(1):开源BBS技术调研,使用docker-compose启动casdoor项目和casnode项目,可以登陆进行权限控制,bbs也正常显示。
docker-compose启动开源论坛,可以登陆权限系统,论坛也正常显示
【casnode】:(2)casnode和casdoor配置成功,论坛可以进注册登陆,通过配置修改即可,去掉邮箱和手机号验证,可以进行注册,登录回调有点问题,继续研究。
使用docker安装开源论坛casnode,解决权限配置问题,能跳转登陆
2,使用docker-compose部署casnode论坛
已经把相关的配置都提交了:
相关执行代码:
# 下载本项目:git clone casnode-bbs-docker-compose# 使用docker-compose 启动docker-compose up -d
这里遇到一个问题:rsa证书错误。
解决办法也特简单:
在默认证书里面找到demo的证书进行替换
注意这个是本地测试的方法!!!
线上环境要重新自己替换在controller 里面的证书:
token_jwt_key.pem
因为代码里面使用了golang1.6的新特性:go:embed,把文件内容直接打进代码中。
这样考虑可以更安全。稍微不方便了些。
//go:embed token_jwt_key.pemvar JwtPublicKey string
然后替换证书官方默认证书和密钥替换下
证书 :
-----BEGIN CERTIFICATE-----MIIE+TCCAuGgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMDYxHTAbBgNVBAoTFENhc2Rvb3IgT3JnYW5pemF0aW9uMRUwEwYDVQQDEwxDYXNkb29yIENlcnQwHhcNMjExMDE1MDgxMTUyWhcNNDExMDE1MDgxMTUyWjA2MR0wGwYDVQQKExRDYXNkb29yIE9yZ2FuaXphdGlvbjEVMBMGA1UEAxMMQ2FzZG9vciBDZXJ0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsInpb5E1/ym0f1RfSDSSE8IR7y+lw+RJjI74e5ejrq4b8zMYk7HeHCyZr/hmNEwEVXnhXu1P0mBeQ5ypp/QGo8vgEmjAETNmzkI1NjOQCjCY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anw6S2tnhxx2Yq78bv8Vj8jA0k8j34j2bMBFcuIEsaQ2Sdfw/1TSkKGB2k2crPtxbblVR4BN1DC8wpK/M67B097uMUmWe1UQxsjc0P9S/rlWUhKyBEeLOV3/yRPDSMGMRXh780wMWlS34RUYxxv6dtWB9KI7++XRrnrBPrZa0xUUOpSYILm7OLeuQ5-----END PRIVATE KEY-----
然后就可以正常登陆了
需要修改积分才可以发帖:
这个钱太少了,需要直接修改数据库才可以发帖:
UPDATE `casdoor`.`user` SET `score` = '200' WHERE (`owner` = 'casbin') and (`name` = 'testbb');
然后需要重启服务:
docker-compose up -d
就可以成功发帖了。
3,总结
终于折腾明白整个论坛了,同时使用最简单的办法,使用docker-compose的方式把相关的服务。
docker-compose的配置文件已经提交了:
casdoor和casnode服务都跑起来。同时了解到casdoor是非常不错的管理帐号的服务。
收获还是非常多的。
gitee配置地址:
标签: #开源论坛程序怎么安装 #wwwjtywtnet