Skip to content

Commit 8a77306

Browse files
authored
feat: add openim log (#679)
* feat: add openim log Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]> * feat: add openim install scripts Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]> * fix: config env command Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]> * fix: config env command Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]> --------- Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
1 parent 5b85fa7 commit 8a77306

File tree

8 files changed

+733
-30
lines changed

8 files changed

+733
-30
lines changed

.goreleaser.yaml

+17-20
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,11 @@ dockers:
343343
use: buildx
344344
build_flag_templates:
345345
- "--pull"
346-
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/goreleaser/goreleaser/main/README.md"
347-
- "--label=io.artifacthub.package.logo-url=https://goreleaser.com/static/avatar.png"
348-
- '--label=io.artifacthub.package.maintainers=[{"name":"Carlos Alexandro Becker","email":"[email protected]"}]'
349-
- "--label=io.artifacthub.package.license=MIT"
350-
- "--label=org.opencontainers.image.description=Deliver Go binaries as fast and easily as possible"
346+
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/Open-IM-Server/main/README.md"
347+
- "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo-green.png"
348+
- '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
349+
- "--label=io.artifacthub.package.license=Apace-2.0"
350+
- "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
351351
- "--label=org.opencontainers.image.created={{.Date}}"
352352
- "--label=org.opencontainers.image.name={{.ProjectName}}"
353353
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
@@ -363,11 +363,11 @@ dockers:
363363
use: buildx
364364
build_flag_templates:
365365
- "--pull"
366-
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/goreleaser/goreleaser/main/README.md"
367-
- "--label=io.artifacthub.package.logo-url=https://goreleaser.com/static/avatar.png"
368-
- '--label=io.artifacthub.package.maintainers=[{"name":"Carlos Alexandro Becker","email":"[email protected]"}]'
369-
- "--label=io.artifacthub.package.license=MIT"
370-
- "--label=org.opencontainers.image.description=Deliver Go binaries as fast and easily as possible"
366+
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/Open-IM-Server/main/README.md"
367+
- "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo-green.png"
368+
- '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
369+
- "--label=io.artifacthub.package.license=Apace-2.0"
370+
- "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
371371
- "--label=org.opencontainers.image.created={{.Date}}"
372372
- "--label=org.opencontainers.image.name={{.ProjectName}}"
373373
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
@@ -505,19 +505,16 @@ release:
505505
</p>
506506
507507
508-
## Contact Us
508+
## Get Involved with OpenIM!
509509
510-
We value close connections with our users, developers, and contributors here at OpenIMSDK. With a large community and maintainer team, we're always here to help and support you. Whether you're looking to join our community or have any questions or suggestions, we welcome you to get in touch with us.
510+
**Here are some ways to get involved with the OpenIM community:**
511511
512-
Our most recommended way to get in touch is through [Slack](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg). Even if you're in China, Slack is usually not blocked by firewalls, making it an easy way to connect with us. Our Slack community is the ideal place to discuss and share ideas and suggestions with other users and developers of OpenIMSDK. You can ask technical questions, seek help, or share your experiences with other users of OpenIMSDK.
512+
📢 **Slack Channel**: Join our Slack channels for discussions, communication, and support. Click [here](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) to join the Open-IM-Server Slack team channel.
513513
514-
In [OpenIM community is recruiting new members! discussion](https://github.com/orgs/OpenIMSDK/discussions/426) please leave your information, convenient we will better developers around the small gift to send to your hands.
514+
📧 **Gmail Contact**: If you have any questions, suggestions, or feedback for our open-source projects, please feel free to [contact us via email](https://mail.google.com/mail/?view=cm&fs=1&tf=1&[email protected]).
515515
516-
In addition to Slack, we also offer the following ways to get in touch:
516+
📖 **Blog**: Stay up-to-date with OpenIM-Server projects and trends by reading our [blog](https://doc.rentsoft.cn/). We share the latest developments, tech trends, and other interesting information related to OpenIM.
517517
518-
+ <a href="https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg" target="_blank"><img src="https://img.shields.io/badge/slack-%40OpenIMSDKCore-informational?logo=slack&style=flat-square"></a>: We also have Slack channels for you to communicate and discuss. To join, visit https://slack.com/ and join our [👀 Open-IM-Server slack](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) team channel.
519-
+ <a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&[email protected]" target="_blank"><img src="https://img.shields.io/badge/gmail-%40OOpenIMSDKCore?style=social&logo=gmail"></a>: Get in touch with us on [Gmail]([email protected]). If you have any questions or issues that need resolving, or any suggestions and feedback for our open source projects, please feel free to contact us via email.
520-
+ <a href="https://doc.rentsoft.cn/" target="_blank"><img src="https://img.shields.io/badge/%E5%8D%9A%E5%AE%A2-%40OpenIMSDKCore-blue?style=social&logo=Octopus%20Deploy"></a>: Read our [blog](https://doc.rentsoft.cn/). Our blog is a great place to stay up-to-date with Open-IM-Server projects and trends. On the blog, we share our latest developments, tech trends, and other interesting information.
521-
+ <a href="https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg" target="_blank"><img src="https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-OpenIMSDKCore-brightgreen?logo=wechat&style=flat-square"></a>: Add [Wechat](https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) and indicate that you are a user or developer of Open-IM-Server. We will process your request as soon as possible.
518+
📱 **WeChat**: Add us on WeChat (QR Code) and indicate that you are a user or developer of Open-IM-Server. We'll process your request as soon as possible.
522519
523-
Whether you're looking to join our community or have any questions or suggestions, we welcome you to get in touch with us.
520+
Remember, your contributions play a vital role in making OpenIM successful, and we look forward to your active participation in our community! 🙌

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ multiarch:
6868
install:
6969
@$(MAKE) go.install
7070

71+
## check: Check OpenIM deployment ✨
72+
.PHONY: check
73+
check:
74+
@$(MAKE) go.check
75+
7176
## tidy: tidy go.mod ✨
7277
.PHONY: tidy
7378
tidy:
@@ -176,6 +181,11 @@ verify-copyright:
176181
add-copyright:
177182
@$(MAKE) copyright.add
178183

184+
## advertise: Project introduction, become a contributor ✨
185+
.PHONY: advertise
186+
advertise:
187+
@$(MAKE) copyright.advertise
188+
179189
## release: release the project ✨
180190
.PHONY: release
181191
release: release.verify release.ensure-tag

config/config.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ zookeeper:
2424

2525
mysql:
2626
address: [ 127.0.0.1:13306 ] #目前仅支持单机
27-
username: root #用户名
28-
password: openIM123 #密码
27+
username: root
28+
password: openIM123
2929
database: openIM_v3 #不建议修改
3030
maxOpenConn: 1000 #最大连接数
3131
maxIdleConn: 100 #最大空闲连接数
@@ -37,14 +37,14 @@ mongo:
3737
uri: #不为空则直接使用该值
3838
address: [ 127.0.0.1:37017 ] #单机时为mongo地址,使用分片集群时,为mongos地址
3939
database: openIM_v3 #mongo db 默认即可
40-
username: root #用户名
41-
password: openIM123 #密码
40+
username: root
41+
password: openIM123
4242
maxPoolSize: 100
4343

4444
redis:
4545
address: [ 127.0.0.1:16379 ] #
4646
username: #only redis version 6.0+ need username
47-
password: openIM123 #密码
47+
password: openIM123
4848

4949
kafka:
5050
username: #用户名
@@ -77,9 +77,9 @@ object:
7777
apiURL: "http://127.0.0.1:10002/object/" #地址需要app能访问到
7878
minio:
7979
bucket: "openim" #不建议修改
80-
endpoint: "http://127.0.0.1:10005" #minio对外服务的ip和端口,app要能访问此ip和端口
81-
accessKeyID: "root" #ID
82-
secretAccessKey: "openIM123" #秘钥
80+
endpoint: http://127.0.0.1:10005 #地址需要app能够访问
81+
accessKeyID: root
82+
secretAccessKey: openIM123
8383
sessionToken: "" #token
8484
cos: #tencent cos
8585
bucketURL: "https://temp-1252357374.cos.ap-chengdu.myqcloud.com"
@@ -167,7 +167,7 @@ retainChatRecords: 365 #mongo保存离线消息
167167
chatRecordsClearTime: "0 2 * * 3" #每周三凌晨2点清理mongo中的过期(超过retainChatRecords时间)消息,这个删除是为了清理满足上个配置retainChatRecords的过期消息,不会发送通知,仅仅作为清理磁盘使用
168168
msgDestructTime: "0 2 * * *" #消息自动删除时间,每天凌晨2点删除过期消息,这个删除是为了删除保留时间超过超过会话字段msg_destruct_time(秒)的消息。
169169

170-
secret: tuoyun #秘钥,获取token时校验
170+
secret: openIM123
171171

172172
tokenPolicy:
173173
expire: 90 #过期时间(天)
@@ -257,4 +257,4 @@ prometheus: #prometheus每个服务的端口数量需要和rpcPort保持对应
257257
conversationPrometheusPort: [ 20230 ]
258258
rtcPrometheusPort: [ 21300 ]
259259
thirdPrometheusPort: [ 21301 ]
260-
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] #端口数量需要和script/path_info.sh中的msg_transfer_service_num保持一致
260+
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] #端口数量需要和script/path_info.sh中的msg_transfer_service_num保持一致

0 commit comments

Comments
 (0)