mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 17:55:10 +08:00
修复 Nacos 网络模式
避免 客户端会根据服务端的配置自动计算其他端口进行通信 导致无法连接 Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
cbf901374e
commit
b84540be31
38
apps/crmeb/2.1.5/data.yml
Normal file
38
apps/crmeb/2.1.5/data.yml
Normal file
@ -0,0 +1,38 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/bark"
|
||||
edit: true
|
||||
envKey: BARK_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_DSN
|
||||
labelZh: 数据库链接
|
||||
labelEn: Database URL
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_BASIC_AUTH_USER
|
||||
labelZh: 用户名 (服务基础验证)
|
||||
labelEn: Basic Auth User
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_BASIC_AUTH_PASSWORD
|
||||
labelZh: 密码 (服务基础验证)
|
||||
labelEn: Basic Auth Password
|
||||
required: false
|
||||
type: text
|
27
apps/crmeb/2.1.5/docker-compose.yml
Normal file
27
apps/crmeb/2.1.5/docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
||||
version: "3.8"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
bark:
|
||||
image: finab/bark-server:v2.1.5
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${BARK_ROOT_PATH}/data:/data
|
||||
environment:
|
||||
- BARK_SERVER_ADDRESS=0.0.0.0:8080
|
||||
- BARK_SERVER_URL_PREFIX=/
|
||||
- BARK_SERVER_DATA_DIR=/data
|
||||
- BARK_SERVER_SERVERLESS=false
|
15
apps/crmeb/2.1.5/scripts/init.sh
Normal file
15
apps/crmeb/2.1.5/scripts/init.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
10
apps/crmeb/2.1.5/scripts/uninstall.sh
Normal file
10
apps/crmeb/2.1.5/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
15
apps/crmeb/2.1.5/scripts/upgrade.sh
Normal file
15
apps/crmeb/2.1.5/scripts/upgrade.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
40
apps/crmeb/README.md
Normal file
40
apps/crmeb/README.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Crmeb 商城
|
||||
|
||||
CRMEB属于西安众邦网络科技有限公司旗下品牌,CRMEB v5 基于ThinkPhp6.0+uniapp 开发的新零售社交电商系统。
|
||||
|
||||
![Crmeb](https://file.lifebus.top/imgs/crmeb_cover.png)
|
||||
![Crmeb 后端](https://file.lifebus.top/imgs/crmeb_cover_admin.png)
|
||||
|
||||
系统采用前后端分离技术,基于TP6+Uni-app框架开发;全开源无加密,支持微信小程序、公众号、H5、APP、PC端适配,数据同步!是一套为开发者量身打造,极易二次开发的单商户新零售社交电商系统。
|
||||
|
||||
## 应用简介
|
||||
|
||||
+ `前后端分离`:后端TP6,管理端Element UI,移动端Uni-app;
|
||||
+ `代码规范`:遵循PSR-2命名规范、Restful标准接口、代码严格分层、注释齐全、统一错误码;
|
||||
+ `权限管理`:内置强大灵活的权限管理,可以控制到每一个菜单;
|
||||
+ `开发配置`:低代码增加配置、系统组合数据模块;
|
||||
+ `代码生成`:快速生成后台菜单、页面,快速实现增删改查;
|
||||
+ `定时任务`:系统内置10中定时任务,还有自定义任务,可以自行设置执行周期,执行代码,完美兼容;
|
||||
+ `系统事件`:埋入30+系统事件锚点,可在后台页面进行事件添加;
|
||||
+ `在线编辑`:可以在后台对系统的代码进行编辑修改操作,不用登录服务器去修改代码文件,方便快捷;
|
||||
+ `接口管理`:后台页面可以看到系统中所有的接口数据,并且可以在线调试接口;
|
||||
+ `二开效率`:应用form-builder PHP可以快速生成表单;
|
||||
+ `快速上手`:详细帮助文档、后台接口管理、后台数据库字典、系统文件管理备注、代码注释、一键安装;
|
||||
+ `系统安全`:系统操作日志、系统生产日志、文件校验、数据备份;
|
||||
+ `高性能`:支持Redis缓存、队列、长连接、多种云储存、支持集群部署。
|
||||
|
||||
## 📺 版权须知
|
||||
|
||||
> Apache License 2.0 许可的主要内容包括:
|
||||
>
|
||||
> Apache License 2.0 是一种宽松的开源许可,允许人们自由使用、修改和分发软件。
|
||||
|
||||
+ 授权:允许任何人以任何目的使用、复制、修改和分发该软件。
|
||||
|
||||
+ 版权声明:要求在软件和相关文档中包含原始版权声明和许可证声明。
|
||||
|
||||
+ 保证免责:表明该软件是按现状提供的,没有任何明示或暗示的担保或保证。作者不承担任何赔偿责任。
|
||||
|
||||
+ 贡献者授权:要求所有贡献者授予 Apache 软件基金会永久性的、免费的、不可撤销的许可,以使用、复制、修改和分发其贡献。
|
||||
|
||||
+ 专利许可:为了保护使用该软件的用户,该许可要求贡献者授权任何必要的专利许可,以便将其用于 Apache 软件基金会的项目。
|
17
apps/crmeb/data.yml
Normal file
17
apps/crmeb/data.yml
Normal file
@ -0,0 +1,17 @@
|
||||
name: Crmeb 商城
|
||||
title:
|
||||
description:
|
||||
additionalProperties:
|
||||
key: crmeb
|
||||
name: Crmeb 商城
|
||||
tags:
|
||||
- WebSite
|
||||
- Local
|
||||
shortDescZh:
|
||||
shortDescEn:
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: http://www.crmeb.com/
|
||||
github: https://github.com/crmeb/CRMEB/
|
||||
document: https://doc.crmeb.com/
|
BIN
apps/crmeb/logo.png
Normal file
BIN
apps/crmeb/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
@ -8,11 +8,11 @@ additionalProperties:
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 主机模式
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: 桥接模式
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: 无网络
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
|
@ -8,11 +8,11 @@ additionalProperties:
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 主机模式
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: 桥接模式
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: 无网络
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
|
@ -8,11 +8,11 @@ additionalProperties:
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 主机模式
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: 桥接模式
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: 无网络
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
|
@ -19,6 +19,22 @@ additionalProperties:
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "host"
|
||||
edit: true
|
||||
envKey: NETWORK_MODE
|
||||
labelEn: Drive path
|
||||
labelZh: 网络模式
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
- default: "/home/nacos"
|
||||
edit: true
|
||||
envKey: NACOS_ROOT_PATH
|
||||
|
@ -11,11 +11,11 @@ services:
|
||||
restart: always
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
- 1panel-network
|
||||
network_mode: ${NETWORK_MODE}
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8848
|
||||
- ${NACOS_COMMUNICATION_PORT}:9848
|
||||
- ${PANEL_APP_PORT_GRPC_CLIENT}:9848
|
||||
- ${PANEL_APP_PORT_GRPC_SERVER}:9849
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
|
@ -4,10 +4,13 @@
|
||||
|
||||
![Nacos](https://github.com/alibaba/nacos/raw/develop/doc/Nacos_Logo.png)
|
||||
|
||||
## 特性
|
||||
|
||||
## 安装说明
|
||||
|
||||
Nacos
|
||||
2.x默认使用的端口为8848(HTTP管理端口)、9848(客户端gRPC请求服务端端口)和9849(服务端gRPC请求服务端端口)。客户端在连接时,虽然主要配置的是管理端访问端口8848,但实际上客户端会根据服务端的配置自动计算其他端口进行通信。
|
||||
|
||||
因此我们推荐使用 `host` 模式部署,以避免端口冲突。
|
||||
|
||||
> 安全路径:`/nacos`
|
||||
>
|
||||
> 用户名:`nacos`
|
||||
|
@ -8,11 +8,11 @@ additionalProperties:
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 主机模式
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: 桥接模式
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: 无网络
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
|
@ -38,13 +38,13 @@ additionalProperties:
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "Host"
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: "Bridge"
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: "None"
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: "1panel-network"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
- default: "false"
|
||||
edit: true
|
||||
|
@ -8,11 +8,11 @@ additionalProperties:
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 主机模式
|
||||
- label: 主机网络模式
|
||||
value: "host"
|
||||
- label: 桥接模式
|
||||
- label: 桥接网络模式
|
||||
value: "bridge"
|
||||
- label: 无网络
|
||||
- label: 无网络模式
|
||||
value: "none"
|
||||
- label: 1panel-network
|
||||
value: "1panel-network"
|
||||
|
Loading…
Reference in New Issue
Block a user