mlogclub / bbs-go Goto Github PK
View Code? Open in Web Editor NEW基于Golang的开源社区系统。简洁对话,高效互动,社区新体验!
Home Page: https://bbs-go.com
License: GNU General Public License v3.0
基于Golang的开源社区系统。简洁对话,高效互动,社区新体验!
Home Page: https://bbs-go.com
License: GNU General Public License v3.0
--- 访问 api/captcha/request 返回的 captchaUrl 为127.0.0.1 导致图片无法显示成功
{
"errorCode": 0,
"message": "",
"data": {
"captchaId": "iOPa64RnSSzBKlyXGNCn",
"captchaUrl": "http://127.0.0.1/api/captcha/show?captchaId=iOPa64RnSSzBKlyXGNCn"
},
"success": true
}
$ go version
go version go1.13.6 linux/amd64
$ cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
# go mod download
verifying github.com/kataras/iris/[email protected]/go.mod: checksum mismatch
downloaded: h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U=
go.sum: h1:SwHqNIXZt54j+lgTpkbOF22syfzQg7iNTh3mFMnG6nU=
SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.
For more information, see 'go help module-auth'.
$ go version
go version go1.13.6 linux/amd64
$ cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
# go mod download
verifying github.com/kataras/iris/[email protected]/go.mod: checksum mismatch
downloaded: h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U=
go.sum: h1:SwHqNIXZt54j+lgTpkbOF22syfzQg7iNTh3mFMnG6nU=
SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.
For more information, see 'go help module-auth'.
您好,请教一下,我按照教程搭建了bbs,但是验证码图片显示不出来,求助~
2019/07/29 10:19:55 /Users/knight/Repository/go/pkg/mod/github.com/ikeikeikeike/go-sitemap-generator/[email protected]/stm/sitemap.go:14: Max processors 8
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x16c9bc6]
goroutine 62 [running]:
github.com/ikeikeikeike/go-sitemap-generator/v2/stm.(*Sitemap).XMLContent(...)
/Users/knight/Repository/go/pkg/mod/github.com/ikeikeikeike/go-sitemap-generator/[email protected]/stm/sitemap.go:103
github.com/mlogclub/mlog/services.(*articleService).GenerateSitemap(0x22eb0f8)
/Users/knight/Repository/go/src/mlog/services/article_service.go:294 +0x5c6
github.com/mlogclub/mlog/app.generateSitemapAndRss.func1()
/Users/knight/Repository/go/src/mlog/app/starting.go:20 +0x2d
created by github.com/mlogclub/mlog/app.generateSitemapAndRss
/Users/knight/Repository/go/src/mlog/app/starting.go:19 +0x35
exit status 2
配置描述如下:
proxy: {
'/api/':
process.env.NODE_ENV === 'production'
? 'http://api.shitcoin.chat'
: process.env.NODE_ENV === 'docker'
? 'http://bbs-go-server:8082'
: 'http://172.21.174.102:8082',
},
// Doc: https://github.com/shakee93/vue-toasted
// Doc: https://github.com/nuxt-community/modules/tree/master/packages/toast
toast: {
position: 'top-right',
duration: 2000, // Display time of the toast in millisecond
keepOnHover: true, // When mouse is over a toast's element, the corresponding duration timer is paused until the cursor leaves the element
},
/*
** Build configuration
/
build: {
// publicPath: 'https://file.mlog.club/static/nuxtclient/',
optimizeCSS: true,
extractCSS: true,
splitChunks: {
layouts: true,
pages: true,
commons: true,
},
postcss: {
preset: {
features: {
customProperties: false,
},
},
},
/
** You can extend webpack config here
*/
extend(config, ctx) {},
},
}
MySqlUrl: shitcoin:password@tcp(ip:port)/bbsgo_db?charset=utf8mb4&parseTime=True&loc=Local
Github:
ClientID:
ClientSecret:
QQConnect:
AppId:
AppKey:
Uploader:
Enable: local
# 阿里云oss配置
Local:
Host: "http://shitcoin.chat"
Path: "./data"
AliyunOss:
Host: 请配置成你自己的
Bucket: 请配置成你自己的
Endpoint: 请配置成你自己的
AccessId: 请配置成你自己的
AccessSecret: 请配置成你自己的
Smtp:
Addr: smtp.qq.com
Port: '25'
Username: 请配置成你自己的
Password: 请配置成你自己的
BaiduAi:
ApiKey:
SecretKey:
操作行为描述: 更新头像图片
site错误输出:
ERROR Cannot read property 'originalUrl' of undefined 11:55:52
at getSignInUrl (middleware/authenticated.js:35:0)
at toSignIn (middleware/authenticated.js:26:0)
at server.js:386:5
at promisify (.nuxt/utils.js:259:0)
at middlewareSeries (.nuxt/utils.js:239:0)
at module.exports.webpack_exports.default (.nuxt/server.js:205:0)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
楼主有没有出现过 CPU过载现象,服务部署后,mysql IO这块负载很高
楼主部署的服务机器配置大概怎样的
Nan's BBS 南生论坛 基于SSM框架,自适应手机端和电脑端,界面简洁美观,功能完善。分为用户系统和管理系统两部分
github地址:https://github.com/maliangnansheng/bbs-ssm
演示地址:http://www.nanshengbbs.top
建议增加脚本自动生成cscope及tags文件,方便开发人员使用vim查看代码,以及开发相关功能。
test env
bbs-go version v3.1.3
mysql docker image --->mariadb/server:10.4
what i did
topic/create ---> 发表主题
log info
(/bbs-go/server/repositories/topic_repository.go:69)
[2020-06-26 09:27:03] Error 1364: Field 'type' doesn't have a default value
v3.1.4
本地 MACOS
docker 方式启动
bbs-go-site_1 | > [email protected] start /app
bbs-go-site_1 | > nuxt start
bbs-go-site_1 |
bbs-go-site_1 | ℹ Listening on: http://172.20.0.3:3000/
bbs-go-server_1 | time="2020-07-01T12:37:42+08:00" level=error msg="Get : unsupported protocol scheme """
bbs-go-server_1 | time="2020-07-01T12:37:57+08:00" level=error msg="Get : unsupported protocol scheme """
bbs-go-server_1 | time="2020-07-01T12:38:12+08:00" level=error msg="Get : unsupported protocol scheme """
bbs-go-server_1 | time="2020-07-01T12:38:27+08:00" level=error msg="Get : unsupported protocol scheme """
现在纯论坛模式在国内基本个人小玩家都挂不了了。
建议可以增加兼容issue社区反馈等的,类似github issue反馈等业务型的反馈功能。
技术栈是react,想使用react自定义前端的服务,想问问有没有暴露接口的文档呢
每次注册时,就会弹出报错,报错信息见上图。
而且代码里面搜索 no such host 找不到对应的。
代码里面和.jpg
相关的就只有这段 utils.go :
// generateKey 生成图片Key
func generateImageKey(data []byte) string {
md5 := simple.MD5Bytes(data)
return filepath.Join("images", simple.TimeFormat(time.Now(), "2006/01/02/"), md5+".jpg")
}
可能是qq邮箱的报错,也有可能是其他,我明天设置一下网易邮箱试试
我这里做了个本地测试,尝试了用多种方法链接smtp邮箱,刚开始是自己随便配了个站点邮箱,可以用网易邮箱大师发送邮件,但是用bbs-go配置上这个信息在main里面直接发送邮件测试发现不行,后来用qq个人邮箱开启了smtp服务尝试,甚至链接smtp.qq.com都说dial tcp :25: connectex: No connection could be made because the target machine actively refused it.
ssl开关都不行,我甚至开始怀疑这个邮箱模块是否能用,这里是我个人邮箱的配置,可以拿去调试
这里是我在main中调用发送的配置
但实情是,我在项目启动后会调用这个发送邮箱的模块,但是始终报错dial tcp :25: connectex: No connection could be made because the target machine actively refused it.
这个端口是可以通过其他平台的客户端软件通过stmp发送邮件的,包括直接用telnet也可以连接,那么问题来了,是什么导致连这个端口在bss-go的邮箱模块访问不了的呢?
今天发现这个项目,非常棒!感谢作者。
小小建议:this改成m,因为this在goland小波浪线,看着不舒服。😸
建议管理后台也统一nuxt
运行命令 bash ./build.sh
./build.sh: line 2: $'\r': command not found
./build.sh: line 6: $'\r': command not found
./build.sh: line 11: $'\r': command not found
./build.sh: line 17: $'\r': command not found
./build.sh: line 18: $'\r': command not found
./build.sh: line 19: syntax error near unexpected token `$'{\r''
'/build.sh: line 19: `funcBuildServer() {
使用命令vim -b build.sh 打开build.sh文件
rePassword在前端处理即可,主要用于防止用户输入错误,无需传输两遍到后端校验
你好,我使用时一开始用MySQL 5.6创建的数据库charset默认成了latin1,发现错误以后我drop了所有table,改了数据库charset和collation,重新用文档里的数据库SQL做了初始化,删除了静态生成的xml。
正常登陆admin后台,但是当我想创建第一个话题节点时,提示上面错误。请问怎么办?
请问下,程序第一次启动时,站长账号是怎样优雅的配置 放入数据库的啊
CheckIn 方法这样加锁,不是同时只有一个人可以签到了么,用户一多 同时签到的时候不是要排队签到影响并发了么
func (s *checkInService) CheckIn(userId int64) error {
s.m.Lock()
defer s.m.Unlock()
....
}
AntiSpam 经典反垃圾评论机器人陷阱插件, 或CommentFilter
有发现就触发需审核机制,无则直接回复成功
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
layouts/admin/907ce8a6.4984274.js (483 KiB)
QQ Oauth登陆时,发现登陆后都是同一个人的账号,这个账号序号在中间,不靠头尾,非常奇怪。
请问怎么回事
我需要把网站配置在已有站点的子目录下,比如
https://www.mysite.com/bbs
我发现后台server有相关路径设置,然而前台没有发现类似设置。
所以现在前台运行以后,所有的链接路径都是紧接着域名的,没有用到子目录。
比如本来是https://www.mysite.com/bbs/topics,现在是https://www.mysite.com/topics
请问应该如何设置??
如题
func(key cache.Key) (value cache.Value, e error) {
value = repositories.UserRepository.Get(simple.DB(), key2Int64(key))
return
},
repositories.UserRepository.Get 没有传递error, 会导致loader中的e永远是nil,然后cache中的逻辑 (err always nil)永远都不会执行c.stats.RecordLoadError(loadTime) [goburrow/cache/local.go line: 295]
if err != nil {
c.stats.RecordLoadError(loadTime)
return nil, err
}
c.stats.RecordLoadSuccess(loadTime)
en := newEntry(k, v, sum(k))
c.setEntryWriteTime(en, now)
c.setEntryAccessTime(en, now)
c.sendEvent(eventWrite, en)
return v, nil
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.