From 4005a4babef08911c38ca199f67fa5c83505b5b5 Mon Sep 17 00:00:00 2001 From: heavyrian2012 Date: Wed, 10 Jul 2024 11:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- broker/config/wildfirechat.conf | 21 +++++++++-------- .../src/main/resources/wildfirechat.conf | 23 ++++++++++--------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/broker/config/wildfirechat.conf b/broker/config/wildfirechat.conf index 1b593161..f6668a2a 100755 --- a/broker/config/wildfirechat.conf +++ b/broker/config/wildfirechat.conf @@ -254,15 +254,6 @@ client.request_rate_limit 100 ##关于对象存储的详细信息请参考:https://docs.wildfirechat.cn/server/oss.html media.server.use_qiniu 0 -##媒体类型分类 -#Media_Type_GENERAL = 0, -#Media_Type_IMAGE = 1, -#Media_Type_VOICE = 2, -#Media_Type_VIDEO = 3, -#Media_Type_FILE = 4, -#Media_Type_PORTRAIT = 5, -#Media_Type_FAVORITE = 6 - # qiniu media server configuration qiniu.server_url http://up.qbox.me qiniu.access_key tU3vdBK5BL5j4N7jI5N5uZgq_HQDo170w5C9Amnn @@ -286,11 +277,21 @@ qiniu.bucket_portrait_domain http://cdn2.wildfirechat.cn qiniu.bucket_favorite_name storage qiniu.bucket_favorite_domain http://cdn2.wildfirechat.cn +##媒体类型分类 +#Media_Type_GENERAL = 0, +#Media_Type_IMAGE = 1, +#Media_Type_VOICE = 2, +#Media_Type_VIDEO = 3, +#Media_Type_FILE = 4, +#Media_Type_PORTRAIT = 5, +#Media_Type_FAVORITE = 6, +#Media_Type_STICKER = 7, +#Media_Type_MOMENTS = 8 # local media server configuration # 本地媒体服务器配置。 local.media.storage.root media -# 如果使用内置文件存储,文件上传后地址默认为 http://server.ip:http_port/fs/5/2021/03/27/08/filename。 +# 如果使用内置文件存储,文件上传后地址默认为 http://server.ip:http_port/fs/5/2021/03/27/08/filename。fs目录下按照类型存放文件,媒体类型见上面注释,比如5就是Media_Type_PORTRAIT,是客户端的头像文件。 # 如果需要使用nginx添加https支持,请打开下面配置,这样客户端得到的文件地址为 https://example.com/media/fs/5/2021/03/27/08/filename。 # 需要nginx把请求从https://example.com/media/fs 转到 http://server.ip:http_port/fs。注意需要带上所有header。 # 尽管内置文件存储可以使用,但是我们还是建议使用专业级别的对象存储服务,社区版可以使用七牛,专业版另外支持阿里云和也是私有对象存储。详情请参考 https://docs.wildfirechat.cn/server/oss.html diff --git a/distribution/src/main/resources/wildfirechat.conf b/distribution/src/main/resources/wildfirechat.conf index 8e66bd57..83b3b891 100755 --- a/distribution/src/main/resources/wildfirechat.conf +++ b/distribution/src/main/resources/wildfirechat.conf @@ -250,15 +250,6 @@ client.request_rate_limit 100 ##关于对象存储的详细信息请参考:https://docs.wildfirechat.cn/server/oss.html media.server.use_qiniu 0 -##媒体类型分类 -#Media_Type_GENERAL = 0, -#Media_Type_IMAGE = 1, -#Media_Type_VOICE = 2, -#Media_Type_VIDEO = 3, -#Media_Type_FILE = 4, -#Media_Type_PORTRAIT = 5, -#Media_Type_FAVORITE = 6 - # qiniu media server configuration ## 上传地址,不同的区域,上传地址也不同,请注意现在正确的地址 qiniu.server_url http://up.qbox.me @@ -284,11 +275,21 @@ qiniu.bucket_portrait_domain http://cdn2.wildfirechat.cn qiniu.bucket_favorite_name storage qiniu.bucket_favorite_domain http://cdn2.wildfirechat.cn +##媒体类型分类 +#Media_Type_GENERAL = 0, +#Media_Type_IMAGE = 1, +#Media_Type_VOICE = 2, +#Media_Type_VIDEO = 3, +#Media_Type_FILE = 4, +#Media_Type_PORTRAIT = 5, +#Media_Type_FAVORITE = 6, +#Media_Type_STICKER = 7, +#Media_Type_MOMENTS = 8 # local media server configuration # 本地媒体服务器配置。 -local.media.storage.root ./media -# 如果使用内置文件存储,文件上传后地址默认为 http://server.ip:http_port/fs/5/2021/03/27/08/filename。 +local.media.storage.root media +# 如果使用内置文件存储,文件上传后地址默认为 http://server.ip:http_port/fs/5/2021/03/27/08/filename。fs目录下按照类型存放文件,媒体类型见上面注释,比如5就是Media_Type_PORTRAIT,是客户端的头像文件。 # 如果需要使用nginx添加https支持,请打开下面配置,这样客户端得到的文件地址为 https://example.com/media/fs/5/2021/03/27/08/filename。 # 需要nginx把请求从https://example.com/media/fs 转到 http://server.ip:http_port/fs。注意需要带上所有header。 # 尽管内置文件存储可以使用,但是我们还是建议使用专业级别的对象存储服务,社区版可以使用七牛,专业版另外支持阿里云和也是私有对象存储。详情请参考 https://docs.wildfirechat.cn/server/oss.html