mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
feature:add nginx
This commit is contained in:
parent
19915e8c21
commit
57da77d9c5
@ -122,14 +122,14 @@ api:
|
|||||||
# minio.signEndpoint is minio public network address
|
# minio.signEndpoint is minio public network address
|
||||||
object:
|
object:
|
||||||
enable: "${OBJECT_ENABLE}"
|
enable: "${OBJECT_ENABLE}"
|
||||||
apiURL: "${OBJECT_APIURL}"
|
apiURL: "${API_NGINX_URL}"
|
||||||
minio:
|
minio:
|
||||||
bucket: "${MINIO_BUCKET}"
|
bucket: "${MINIO_BUCKET}"
|
||||||
endpoint: "${MINIO_ENDPOINT}"
|
endpoint: "${MINIO_ENDPOINT}"
|
||||||
accessKeyID: "${MINIO_ACCESS_KEY}"
|
accessKeyID: "${MINIO_ACCESS_KEY}"
|
||||||
secretAccessKey: "${MINIO_SECRET_KEY}"
|
secretAccessKey: "${MINIO_SECRET_KEY}"
|
||||||
sessionToken: ${MINIO_SESSION_TOKEN}
|
sessionToken: ${MINIO_SESSION_TOKEN}
|
||||||
signEndpoint: "${MINIO_SIGN_ENDPOINT}"
|
signEndpoint: "${OBJECT_NGINX_APIURL}"
|
||||||
publicRead: ${MINIO_PUBLIC_READ}
|
publicRead: ${MINIO_PUBLIC_READ}
|
||||||
cos:
|
cos:
|
||||||
bucketURL: ${COS_BUCKET_URL}
|
bucketURL: ${COS_BUCKET_URL}
|
||||||
|
|||||||
@ -183,6 +183,7 @@ readonly API_URL=${API_URL:-"http://${OPENIM_IP}:${API_OPENIM_PORT}"}
|
|||||||
def "OBJECT_ENABLE" "minio" # 对象是否启用
|
def "OBJECT_ENABLE" "minio" # 对象是否启用
|
||||||
# 对象的API地址
|
# 对象的API地址
|
||||||
readonly OBJECT_APIURL=${OBJECT_APIURL:-"${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
|
||||||
@ -289,6 +290,10 @@ def "GRAFANA_ADDRESS" "${DOCKER_BRIDGE_GATEWAY}" # Grafana的地址
|
|||||||
###################### nginx 配置信息 ######################
|
###################### nginx 配置信息 ######################
|
||||||
readonly NGINX_LISTEN_PORT=${NGINX_LISTEN_PORT:-"80"}
|
readonly NGINX_LISTEN_PORT=${NGINX_LISTEN_PORT:-"80"}
|
||||||
|
|
||||||
|
# 通过nginx访问minio服务器的url
|
||||||
|
readonly OBJECT_NGINX_APIURL=${OBJECT_NGINX_APIURL:-"http://${OPENIM_IP}:${NGINX_LISTEN_PORT}/im-minio-api"}
|
||||||
|
# 通过nginx访问api服务器的url
|
||||||
|
readonly API_NGINX_URL=${API_NGINX_URL:-"http://${OPENIM_IP}:${NGINX_LISTEN_PORT}/api"}
|
||||||
###################### RPC Port Configuration Variables ######################
|
###################### RPC Port Configuration Variables ######################
|
||||||
# For launching multiple programs, just fill in multiple ports separated by commas
|
# For launching multiple programs, just fill in multiple ports separated by commas
|
||||||
# For example:
|
# For example:
|
||||||
@ -382,7 +387,7 @@ def "CALLBACK_FAILED_CONTINUE" "true" # 失败后是否继续
|
|||||||
###################### Prometheus 配置信息 ######################
|
###################### Prometheus 配置信息 ######################
|
||||||
# 是否启用 Prometheus
|
# 是否启用 Prometheus
|
||||||
readonly PROMETHEUS_ENABLE=${PROMETHEUS_ENABLE:-'false'}
|
readonly PROMETHEUS_ENABLE=${PROMETHEUS_ENABLE:-'false'}
|
||||||
def "PROMETHEUS_URL" "${GRAFANA_ADDRESS}:${GRAFANA_PORT}"
|
readonly PROMETHEUS_URL=${PROMETHEUS_URL:-"http://${OPENIM_IP}:${GRAFANA_PORT}/"}
|
||||||
# Api 服务的 Prometheus 端口
|
# Api 服务的 Prometheus 端口
|
||||||
readonly API_PROM_PORT=${API_PROM_PORT:-'20100'}
|
readonly API_PROM_PORT=${API_PROM_PORT:-'20100'}
|
||||||
# User 服务的 Prometheus 端口
|
# User 服务的 Prometheus 端口
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user