mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-09 19:45:58 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d3cc8bf2b2 | |||
| cb8ec92caa | |||
| 95c6bf362b | |||
| 3b80674952 | |||
| cd5a506419 | |||
| 2bba4d01c4 | |||
| 74f8eda40a | |||
| 6803c5c8ed | |||
| 734f2a5116 | |||
| 1ecfbb6563 |
@@ -30,7 +30,7 @@ MINIO_ENDPOINT=http://172.28.0.1:10005
|
|||||||
|
|
||||||
# Base URL for the application programming interface (API).
|
# Base URL for the application programming interface (API).
|
||||||
# Default: API_URL=http://172.28.0.1:10002
|
# Default: API_URL=http://172.28.0.1:10002
|
||||||
API_URL=http://127.0.0.1:10002
|
API_URL=http://172.28.0.1:10002
|
||||||
|
|
||||||
# Directory path for storing data files or related information.
|
# Directory path for storing data files or related information.
|
||||||
# Default: DATA_DIR=./
|
# Default: DATA_DIR=./
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ $ make demo
|
|||||||
|
|
||||||
🤲 In order to facilitate the user experience, we have provided a variety of deployment solutions, you can choose your own deployment method according to the list below:
|
🤲 In order to facilitate the user experience, we have provided a variety of deployment solutions, you can choose your own deployment method according to the list below:
|
||||||
|
|
||||||
|
> [ !TIP ] Due to some issues with the release-v3.3 deployment, linux deployment requires the root user to deploy the entire deployment
|
||||||
|
|
||||||
<details> <summary>Deploying with Docker Compose</summary>
|
<details> <summary>Deploying with Docker Compose</summary>
|
||||||
|
|
||||||
It is recommended to use Docker Compose for deployment, which can easily and quickly deploy the entire OpenIM service on a single node
|
It is recommended to use Docker Compose for deployment, which can easily and quickly deploy the entire OpenIM service on a single node
|
||||||
|
|||||||
+2
-2
@@ -132,14 +132,14 @@ api:
|
|||||||
# minio.signEndpoint is minio public network address
|
# minio.signEndpoint is minio public network address
|
||||||
object:
|
object:
|
||||||
enable: "minio"
|
enable: "minio"
|
||||||
apiURL: "http://http://127.0.0.1:10002"
|
apiURL: "http://172.28.0.1:10002"
|
||||||
minio:
|
minio:
|
||||||
bucket: "openim"
|
bucket: "openim"
|
||||||
endpoint: "http://172.28.0.1:10005"
|
endpoint: "http://172.28.0.1:10005"
|
||||||
accessKeyID: "root"
|
accessKeyID: "root"
|
||||||
secretAccessKey: "openIM123"
|
secretAccessKey: "openIM123"
|
||||||
sessionToken: ''
|
sessionToken: ''
|
||||||
signEndpoint: "http://127.0.0.1:10005"
|
signEndpoint: "http://172.28.0.1:10002"
|
||||||
cos:
|
cos:
|
||||||
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
|
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
|
||||||
secretID: ''
|
secretID: ''
|
||||||
|
|||||||
+5
-5
@@ -36,7 +36,7 @@ services:
|
|||||||
- "${DATA_DIR}/components/mongodb/data/db:/data/db"
|
- "${DATA_DIR}/components/mongodb/data/db:/data/db"
|
||||||
- "${DATA_DIR}/components/mongodb/data/logs:/data/logs"
|
- "${DATA_DIR}/components/mongodb/data/logs:/data/logs"
|
||||||
- "${DATA_DIR}/components/mongodb/data/conf:/etc/mongo"
|
- "${DATA_DIR}/components/mongodb/data/conf:/etc/mongo"
|
||||||
- ./scripts/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro"
|
- ./scripts/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh"
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- wiredTigerCacheSizeGB=1
|
- wiredTigerCacheSizeGB=1
|
||||||
@@ -127,9 +127,9 @@ services:
|
|||||||
ipv4_address: ${MINIO_NETWORK_ADDRESS}
|
ipv4_address: ${MINIO_NETWORK_ADDRESS}
|
||||||
|
|
||||||
openim-web:
|
openim-web:
|
||||||
image: ghcr.io/openimsdk/openim-web:latest
|
image: ghcr.io/openimsdk/openim-web:v3.5.0-docker
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-web:latest
|
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-web:v3.5.0-docker
|
||||||
# image: openim/openim-web:latest
|
# image: openim/openim-web:v3.5.0-docker
|
||||||
container_name: openim-web
|
container_name: openim-web
|
||||||
environment:
|
environment:
|
||||||
- OPENIM_WEB_DIST_PATH=${OPENIM_WEB_DIST_PATH}
|
- OPENIM_WEB_DIST_PATH=${OPENIM_WEB_DIST_PATH}
|
||||||
@@ -203,4 +203,4 @@ services:
|
|||||||
# - prometheus
|
# - prometheus
|
||||||
# networks:
|
# networks:
|
||||||
# openim-server:
|
# openim-server:
|
||||||
# ipv4_address: ${GRAFANA_NETWORK_ADDRESS}
|
# ipv4_address: ${GRAFANA_NETWORK_ADDRESS}
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ func (m MessageApi) newUserSendMsgReq(c *gin.Context, params *apistruct.SendMsg)
|
|||||||
options := make(map[string]bool, 5)
|
options := make(map[string]bool, 5)
|
||||||
switch params.ContentType {
|
switch params.ContentType {
|
||||||
case constant.Text:
|
case constant.Text:
|
||||||
newContent = params.Content["text"].(string)
|
fallthrough
|
||||||
case constant.Picture:
|
case constant.Picture:
|
||||||
fallthrough
|
fallthrough
|
||||||
case constant.Custom:
|
case constant.Custom:
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ readonly API_URL=${API_URL:-"http://${IP}:${API_OPENIM_PORT}"}
|
|||||||
|
|
||||||
def "OBJECT_ENABLE" "minio" # 对象是否启用
|
def "OBJECT_ENABLE" "minio" # 对象是否启用
|
||||||
# 对象的API地址
|
# 对象的API地址
|
||||||
readonly OBJECT_APIURL=${OBJECT_APIURL:-"http://${API_URL}"}
|
readonly OBJECT_APIURL=${OBJECT_APIURL:-"${API_URL}"}
|
||||||
def "MINIO_BUCKET" "openim" # MinIO的存储桶名称
|
def "MINIO_BUCKET" "openim" # MinIO的存储桶名称
|
||||||
def "MINIO_PORT" "10005" # MinIO的端口
|
def "MINIO_PORT" "10005" # MinIO的端口
|
||||||
# MinIO的端点URL
|
# MinIO的端点URL
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
GO := go
|
GO := go
|
||||||
GO_SUPPORTED_VERSIONS ?= 1.18|1.19|1.20|1.21
|
GO_SUPPORTED_VERSIONS ?= 1.18|1.19|1.20|1.21|1.22
|
||||||
|
|
||||||
GO_LDFLAGS += -X $(VERSION_PACKAGE).gitVersion=$(GIT_TAG) \
|
GO_LDFLAGS += -X $(VERSION_PACKAGE).gitVersion=$(GIT_TAG) \
|
||||||
-X $(VERSION_PACKAGE).gitCommit=$(GIT_COMMIT) \
|
-X $(VERSION_PACKAGE).gitCommit=$(GIT_COMMIT) \
|
||||||
|
|||||||
Reference in New Issue
Block a user