-
Notifications
You must be signed in to change notification settings - Fork 0
MERGE: 将video-nginx合并到nginx中去,移除container_name 等 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
923edcd
refactor: 将video-nginx的配置迁移到nginx中
ipcjs 56fcc77
fix: 更新example, 修复config检查错误
ipcjs 1abc368
fix: minio改成动态解析域名, 防止启动顺序导致的403错误
ipcjs 7c0c67c
perf: 移除container_name, 使用默认的 $projectName + $serviceName + 1 的形式
1921d0e
perf: 给nginx的几个覆写, 添加依赖关系
94ef00a
Revert "fix: minio改成动态解析域名, 防止启动顺序导致的403错误"
fe97046
perf: track的demo添加video
3d5c858
refactor: 默认https, 需要http的时候再覆写
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| ## 视频服务器 | ||
| VIDEO_IP=58.82.168.181 | ||
| VIDEO_HOSTNAME=livedvr.tripsdd.com | ||
| SERVER_IP_PUBLIC=58.82.168.181 | ||
| SERVER_HOSTNAME=livedvr.tripsdd.com | ||
| # 证书文件的绝对路径, 排除.crt/.key后缀, nginx使用的是 $VIDEO_SSL_CERTIFICATE.crt 和 $VIDEO_SSL_CERTIFICATE.key 两个文件 | ||
| VIDEO_SSL_CERTIFICATE=/home/docker-compose/ssl/livedvr_tripsdd_com | ||
| SSL_CERTIFICATE=/home/docker/nginx/ssl/placeholder | ||
|
|
||
| ## 网关服务器 | ||
| JTT808_HOST=103.20.204.149 | ||
|
|
||
| # RABBITMQ | ||
| RABBITMQ_HOST=1111 # 58.82.168.181 | ||
| RABBITMQ_HOST=58.82.168.182 | ||
| RABBITMQ_PORT=5672 | ||
| RABBITMQ_PASSWORD=111 # 123 | ||
| RABBITMQ_PASSWORD=123456 | ||
|
|
||
| # MINIO | ||
| MINIO_PASSWORD=11 # xxxxxxxxxxxxxxxx | ||
| MINIO_PASSWORD=123456 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| ## 视频服务器 | ||
| VIDEO_IP=58.82.168.181 | ||
| VIDEO_HOSTNAME=livedvr.tripsdd.com | ||
| SERVER_IP_PUBLIC=58.82.168.181 | ||
| SERVER_HOSTNAME=livedvr.tripsdd.com | ||
| # 证书文件的绝对路径, 排除.crt/.key后缀, nginx使用的是 $VIDEO_SSL_CERTIFICATE.crt 和 $VIDEO_SSL_CERTIFICATE.key 两个文件 | ||
| VIDEO_SSL_CERTIFICATE=/home/docker-compose/ssl/livedvr_tripsdd_com | ||
| SSL_CERTIFICATE=/home/docker/nginx/ssl/placeholder | ||
|
|
||
| ## 网关服务器 | ||
| JTT808_HOST=103.20.204.149 | ||
| JTT808_HOST=103.20.204.149 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| services: | ||
| mongodb: | ||
| container_name: mongodb | ||
| image: mongo | ||
| restart: always | ||
| privileged: true | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| services: | ||
| nginx: | ||
| depends_on: | ||
| - minio | ||
| configs: | ||
| - source: video-minio.conf.template | ||
| target: /etc/nginx/templates/video-minio.conf.template | ||
| environment: | ||
| - MINIO_HOST=${MINIO_HOST} | ||
| - MINIO_PORT=${MINIO_PORT} | ||
|
|
||
| configs: | ||
| video-minio.conf.template: | ||
| file: ./conf/conf.d/video-minio.conf.template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| services: | ||
| nginx: | ||
| configs: | ||
| # 使用http的配置覆盖 | ||
| - source: video-http.conf.template | ||
| target: /etc/nginx/templates/video.conf.template | ||
|
|
||
| configs: | ||
| video-http.conf.template: | ||
| file: ./conf/conf.d/video-http.conf.template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| services: | ||
| nginx: | ||
| # file://./compose.video.yml 已经是https的配置了, 不需要覆写其他设置, 该文件只是为了和 file://./compose.video.http.yml 对齐 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| services: | ||
| nginx: | ||
| ports: | ||
| # 视频直播,映射srs端口 | ||
| - ${VIDEO_PORT_HTTPS_0}:${VIDEO_PORT_HTTPS_0} | ||
| - ${VIDEO_PORT_HTTPS_1}:${VIDEO_PORT_HTTPS_1} | ||
xiaorongnie marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - ${VIDEO_PORT_HTTPS_2}:${VIDEO_PORT_HTTPS_2} | ||
| - ${VIDEO_PORT_HTTPS_3}:${VIDEO_PORT_HTTPS_3} | ||
| - ${VIDEO_PORT_HTTPS_4}:${VIDEO_PORT_HTTPS_4} | ||
| - ${VIDEO_PORT_HTTPS_5}:${VIDEO_PORT_HTTPS_5} | ||
| depends_on: | ||
| - srs | ||
| - rtp | ||
| secrets: | ||
| - video-ssl-certificate | ||
| - video-ssl-certificate-key | ||
| configs: | ||
| # 默认启动https的配置 | ||
| - source: video-https.conf.template | ||
| target: /etc/nginx/templates/video.conf.template | ||
| environment: | ||
| - VIDEO_PORT_HTTPS_0=${VIDEO_PORT_HTTPS_0} | ||
| - VIDEO_PORT_HTTPS_1=${VIDEO_PORT_HTTPS_1} | ||
| - VIDEO_PORT_HTTPS_2=${VIDEO_PORT_HTTPS_2} | ||
| - VIDEO_PORT_HTTPS_3=${VIDEO_PORT_HTTPS_3} | ||
| - VIDEO_PORT_HTTPS_4=${VIDEO_PORT_HTTPS_4} | ||
| - VIDEO_PORT_HTTPS_5=${VIDEO_PORT_HTTPS_5} | ||
|
|
||
| secrets: | ||
| video-ssl-certificate: | ||
| file: ${VIDEO_SSL_CERTIFICATE:?required}.crt | ||
| video-ssl-certificate-key: | ||
| file: ${VIDEO_SSL_CERTIFICATE:?required}.key | ||
|
|
||
| configs: | ||
| video-https.conf.template: | ||
| file: ./conf/conf.d/video-https.conf.template | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| services: | ||
| nginx: | ||
| image: nginx:1.27.4 | ||
| container_name: nginx | ||
| restart: always | ||
| ports: | ||
| - ${WEB_PORT_HTTPS:-443}:443 | ||
|
|
||
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| services: | ||
| rabbitmq: | ||
| image: rabbitmq:management | ||
| container_name: rabbitmq | ||
| restart: always | ||
| ports: | ||
| # 加密的 AMQP 协议端口 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.