From fa2543735857b7757e41a6cab6923fa432faaf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Tue, 27 May 2025 10:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E7=9A=84?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- environment.sh | 14 ++++++++++++-- start/说明.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++- tuohengdev.sh | 5 +++++ 3 files changed, 64 insertions(+), 3 deletions(-) diff --git a/environment.sh b/environment.sh index 04614b8..1daf186 100644 --- a/environment.sh +++ b/environment.sh @@ -174,8 +174,18 @@ else fi export MINIO_ROOT_USER=miniopassword export MINIO_ROOT_PASSWORD=miniopassword -export MINIO_ACCESS_KEY=shvngIfksXjTqlQHKSxt -export MINIO_SECRET_KEY=Xed4RsGAF1iX7bzEsNEXydnEYsWMUHzU4cA4IPGl + +if [ -z "$MINIO_ACCESS_KEY" ]; then + export MINIO_ACCESS_KEY=shvngIfksXjTqlQHKSxt +else + echo "环境变量 MINIO_ACCESS_KEY 已设置,设置为 ${MINIO_ACCESS_KEY}" +fi + +if [ -z "$MINIO_SECRET_KEY" ]; then + export MINIO_SECRET_KEY=Xed4RsGAF1iX7bzEsNEXydnEYsWMUHzU4cA4IPGl +else + echo "环境变量 MINIO_SECRET_KEY 已设置,设置为 ${MINIO_SECRET_KEY}" +fi # Elasticsearch 配置 export ES_NAME=ES_${DOMAIN} diff --git a/start/说明.md b/start/说明.md index 25e03c0..308f3cf 100644 --- a/start/说明.md +++ b/start/说明.md @@ -32,7 +32,46 @@ nginx的vhosts里面的cert文件需要更新为域名的配置文件 docker exec KAFKA_develop /opt/bitnami/kafka/bin/kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --list 3: 建minio的权限 - 在所有服务都部署完之后才可以 + https://minio-develop.t-aaron.com:3443/ + https://minioconsole-develop.t-aaron.com:3443/ + miniopassword + miniopassword +bucket: + default + image + ta-tech-image + th-airport + prodFile + th-dsp + video +~~~~~~~~~ + + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "admin:*" + ] + }, + { + "Effect": "Allow", + "Action": [ + "kms:*" + ] + }, + { + "Effect": "Allow", + "Action": [ + "s3:*" + ], + "Resource": [ + "arn:aws:s3:::*" + ] + } + ] +} ~~~~~~~~~~~~~~~~~~~~~~ 构建镜像 (在tuoheng的服务器上构建) @@ -42,7 +81,14 @@ nginx的vhosts里面的cert文件需要更新为域名的配置文件 srs: 推流: rtmp://srs-bazhong.t-aaron.com/live/1 读流: https://srs-bazhong.t-aaron.com:2443/live/1.flv + + rtmp://srs-develop.t-aaron.com:1938/live/1 + https://srs-develop.t-aaron.com:3443/live/1.flv + + 录制地址:https://srs-bazhong.t-aaron.com:2443/recording/50ae8720-d8b3-40c6-9e2b-4eb31ed619e6.mp4 + + https://srs-develop.t-aaron.com:3443/recording/50ae8720-d8b3-40c6-9e2b-4eb31ed619e6.mp4 部署在巴中: diff --git a/tuohengdev.sh b/tuohengdev.sh index bcd26ac..3d4cc21 100755 --- a/tuohengdev.sh +++ b/tuohengdev.sh @@ -18,6 +18,11 @@ export SRS_RTMP_PORT=1938 export MINIO_API_PORT=9700 # Minio控制台对外爆露端口 export MINIO_CONSOLE_PORT=9022 + + +export MINIO_ACCESS_KEY=5x2X7FkeyxEYQPAFOUet +export MINIO_SECRET_KEY=WOH5bzWr3OdrdzrPdN3hXFlxsSWJuRW2kQeRUbJI + # Consul 配置 export CONSUL_PORT=8600 # XXL-Job 配置