mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 08:25:53 +08:00
更新
This commit is contained in:
50
docker/Dockerfile
Normal file
50
docker/Dockerfile
Normal file
@@ -0,0 +1,50 @@
|
||||
FROM ubuntu:20.04 as build
|
||||
|
||||
|
||||
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends openjdk-8-jre-headless openjdk-8-jdk-headless git maven nodejs npm openssl && \
|
||||
mkdir -p /opt/fastbee/java /opt/fastbee/vue
|
||||
|
||||
|
||||
RUN cd /home && \
|
||||
git clone "https://gitee.com/zhuangpengli/FastBee" && \
|
||||
cp /home/FastBee/docker/settings.xml /usr/share/maven/conf/
|
||||
|
||||
RUN cd /home/FastBee/vue && \
|
||||
npm install --registry=https://registry.npmmirror.com && \
|
||||
npm run build:prod && \
|
||||
cp -rf /home/FastBee/vue/dist/* /opt/fastbee/vue/
|
||||
|
||||
RUN cd /home/FastBee/springboot && \
|
||||
mvn clean package -Dmaven.test.skip=true && \
|
||||
cp -rf /home/FastBee/springboot/fastbee-admin/target/fastbee-admin.jar /opt/fastbee/java
|
||||
|
||||
|
||||
FROM openjdk:8-jre
|
||||
|
||||
EXPOSE 8080/tcp
|
||||
EXPOSE 1883/tcp
|
||||
EXPOSE 8083/tcp
|
||||
EXPOSE 8888/tcp
|
||||
EXPOSE 8889/tcp
|
||||
EXPOSE 5061/udp
|
||||
|
||||
ENV LC_ALL zh_CN.UTF-8
|
||||
|
||||
COPY --from=build /opt/fastbee/java /opt
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
CMD ["java", "-jar", "/server.jar"]
|
||||
|
||||
FROM nginx:stable
|
||||
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 443/tcp
|
||||
|
||||
ENV LC_ALL zh_CN.UTF-8
|
||||
|
||||
COPY --from=build /opt/fastbee/vue/* /usr/share/nginx/html
|
||||
COPY ./data/nginx/ssl/* /usr/share/nginx/ssl
|
||||
COPY ./data/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
39
docker/README.md
Normal file
39
docker/README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
## 1.clone本项目
|
||||
```
|
||||
git clone https://gitee.com/zhuangpengli/fastbee-docker.git
|
||||
cd fastbee-docker
|
||||
cp -rf ./data /var
|
||||
```
|
||||
## 2.编译java包
|
||||
```
|
||||
git clone https://gitee.com/zhuangpengli/FastBee.git
|
||||
cd FastBee/springboot
|
||||
# 编译emqx版本 请修改fastbee-admin下面 application.yml
|
||||
# server:
|
||||
# broker:
|
||||
# enabled: false
|
||||
# openws: false
|
||||
# 编译netty mqtt版本 保持默认配置
|
||||
mvn clean package -Dmaven.test.skip=true
|
||||
cp ./fastbee-admin/target/fastbee-admin.jar /var/data/java/fastbee-admin.jar
|
||||
```
|
||||
|
||||
## 3.打包前端目录
|
||||
```
|
||||
git clone https://gitee.com/zhuangpengli/FastBee.git
|
||||
cd FastBee/vue
|
||||
npm install
|
||||
npm run build:prod
|
||||
cp -rf ./dist/* /var/data/nginx/vue
|
||||
```
|
||||
|
||||
## 4.启动项目
|
||||
```
|
||||
cd /var/data
|
||||
setenforce 0
|
||||
chmod 777 -R /var/data
|
||||
# 使用emqx版本mqtt broker输入该命令:
|
||||
sudo cp -rf docker-compose-emqx.yml docker-compose.yml
|
||||
# 使用netty mqtt则使用默认脚本直接启动
|
||||
docker-compose up -d
|
||||
```
|
||||
117
docker/data/docker-compose-emqx.yml
Normal file
117
docker/data/docker-compose-emqx.yml
Normal file
@@ -0,0 +1,117 @@
|
||||
version: '2'
|
||||
|
||||
networks:
|
||||
network:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: '177.7.0.0/16'
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:7.0.0
|
||||
container_name: redis
|
||||
ports:
|
||||
- 6379:6379
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.10
|
||||
volumes:
|
||||
- /var/data/redis:/usr/local/etc/redis
|
||||
- /var/data/redis/data:/data
|
||||
command: [ '-- requirepass fastbee', '-- appendonly yes' ]
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
container_name: mysql
|
||||
ports:
|
||||
- 3306:3306
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.11
|
||||
volumes:
|
||||
- /var/data/mysql/mysql:/var/lib/mysql
|
||||
- /var/data/mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
|
||||
- /var/data/mysql/initdb:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
MYSQL_DATABASE: fastbee
|
||||
MYSQL_ROOT_PASSWORD: fastbee
|
||||
command:
|
||||
[
|
||||
'mysqld',
|
||||
'--character-set-server=utf8',
|
||||
'--collation-server=utf8_unicode_ci',
|
||||
'--default-time-zone=+8:00',
|
||||
'--lower-case-table-names=1'
|
||||
]
|
||||
|
||||
emqx:
|
||||
image: emqx:5.1
|
||||
container_name: emqx
|
||||
ports:
|
||||
- 1883:1883
|
||||
- 8083:8083
|
||||
- 8084:8084
|
||||
- 18083:18083
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.12
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
- /var/data/emqx/etc/emqx.conf:/opt/emqx/etc/emqx.conf
|
||||
- /var/data/emqx/etc/acl.conf:/opt/emqx/etc/acl.conf
|
||||
- /var/data/emqx/etc/log:/opt/emqx/log
|
||||
- /var/data/emqx/data/:/opt/emqx/data
|
||||
environment:
|
||||
SET_CONTAINER_TIMEZONE: "true"
|
||||
CONTAINER_TIMEZONE: Asia/Shanghai
|
||||
|
||||
java:
|
||||
image: openjdk:8-jre
|
||||
container_name: java
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 8888:8888
|
||||
- 8889:8889/udp
|
||||
- 5061:5061/udp
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.13
|
||||
depends_on:
|
||||
- emqx
|
||||
- redis
|
||||
- mysql
|
||||
- tdengine
|
||||
volumes:
|
||||
- /var/data/java/fastbee-admin.jar:/server.jar
|
||||
- /var/data/java/libtaos.so:/usr/lib/libtaos.so
|
||||
- /var/data/java/uploadPath:/uploadPath
|
||||
- /var/data/java/logs:/logs
|
||||
- /etc/localtime:/etc/localtime
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
entrypoint: java -jar /server.jar
|
||||
|
||||
nginx:
|
||||
image: nginx:stable
|
||||
container_name: nginx
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.15
|
||||
depends_on:
|
||||
- java
|
||||
volumes:
|
||||
- /var/data/nginx/vue:/usr/share/nginx/html
|
||||
- /var/data/nginx/h5:/usr/share/nginx/h5
|
||||
- /var/data/nginx/www:/usr/share/nginx/www
|
||||
- /var/data/nginx/ssl:/usr/share/nginx/ssl
|
||||
- /var/data/nginx/nginx-emqx.conf:/etc/nginx/nginx.conf
|
||||
- /var/data/nginx:/var/log/nginx
|
||||
@@ -17,11 +17,10 @@ services:
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.10
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/data/redis:/usr/local/etc/redis
|
||||
- /var/data/redis/data:/data
|
||||
command: [ '-- requirepass wumei-smart', '-- appendonly yes' ]
|
||||
command: [ '-- requirepass fastbee', '-- appendonly yes' ]
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
@@ -32,14 +31,13 @@ services:
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.11
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/data/mysql/mysql:/var/lib/mysql
|
||||
- /var/data/mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
|
||||
- /var/data/mysql/initdb:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
MYSQL_DATABASE: wumeismart
|
||||
MYSQL_ROOT_PASSWORD: wumei-smart
|
||||
MYSQL_DATABASE: fastbee
|
||||
MYSQL_ROOT_PASSWORD: fastbee
|
||||
command:
|
||||
[
|
||||
'mysqld',
|
||||
@@ -49,48 +47,27 @@ services:
|
||||
'--lower-case-table-names=1'
|
||||
]
|
||||
|
||||
emqx:
|
||||
image: emqx/emqx:v4.0.0
|
||||
container_name: emqx
|
||||
ports:
|
||||
- 1883:1883
|
||||
- 8081:8081
|
||||
- 8083:8083
|
||||
- 8883:8883
|
||||
- 8084:8084
|
||||
- 18083:18083
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.12
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
- /var/data/emqx/conf/emqx_auth_http.conf:/opt/emqx/etc/plugins/emqx_auth_http.conf
|
||||
- /var/data/emqx/conf/emqx_web_hook.conf:/opt/emqx/etc/plugins/emqx_web_hook.conf
|
||||
- /var/data/emqx/data/loaded_plugins:/opt/emqx/data/loaded_plugins
|
||||
environment:
|
||||
EMQX_ALLOW__ANONYMOUS: "false"
|
||||
SET_CONTAINER_TIMEZONE: "true"
|
||||
CONTAINER_TIMEZONE: Asia/Shanghai
|
||||
|
||||
java:
|
||||
image: openjdk:8-jre
|
||||
container_name: java
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 1883:1883
|
||||
- 8083:8083
|
||||
- 8888:8888
|
||||
- 8889:8889/udp
|
||||
- 5061:5061/udp
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.13
|
||||
ipv4_address: 177.7.0.12
|
||||
depends_on:
|
||||
- emqx
|
||||
- redis
|
||||
- mysql
|
||||
restart: unless-stopped
|
||||
- tdengine
|
||||
volumes:
|
||||
- /var/data/java/wumei-admin.jar:/server.jar
|
||||
- /var/data/java/fastbee-admin.jar:/server.jar
|
||||
- /var/data/java/libtaos.so:/usr/lib/libtaos.so
|
||||
- /var/data/java/uploadPath:/uploadPath
|
||||
- /var/data/java/logs:/logs
|
||||
- /etc/localtime:/etc/localtime
|
||||
@@ -103,17 +80,20 @@ services:
|
||||
container_name: nginx
|
||||
ports:
|
||||
- 80:80
|
||||
- 15060:15060/udp
|
||||
- 443:443
|
||||
privileged: true
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 177.7.0.14
|
||||
ipv4_address: 177.7.0.13
|
||||
depends_on:
|
||||
- java
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/data/nginx/html:/usr/share/nginx/html
|
||||
- /var/data/nginx/vue:/usr/share/nginx/html
|
||||
- /var/data/nginx/h5:/usr/share/nginx/h5
|
||||
- /var/data/nginx/www:/usr/share/nginx/www
|
||||
- /var/data/nginx/ssl:/usr/share/nginx/ssl
|
||||
- /var/data/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- /var/data/nginx:/var/log/nginx
|
||||
|
||||
|
||||
|
||||
|
||||
32
docker/data/emqx/etc/acl.conf
Normal file
32
docker/data/emqx/etc/acl.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
%%--------------------------------------------------------------------
|
||||
%% -type(ipaddr() :: {ipaddr, string()}).
|
||||
%%
|
||||
%% -type(ipaddrs() :: {ipaddrs, string()}).
|
||||
%%
|
||||
%% -type(username() :: {user | username, string()} | {user | username, {re, regex()}}).
|
||||
%%
|
||||
%% -type(clientid() :: {client | clientid, string()} | {client | clientid, {re, regex()}}).
|
||||
%%
|
||||
%% -type(who() :: ipaddr() | ipaddrs() |username() | clientid() |
|
||||
%% {'and', [ipaddr() | ipaddrs()| username() | clientid()]} |
|
||||
%% {'or', [ipaddr() | ipaddrs()| username() | clientid()]} |
|
||||
%% all).
|
||||
%%
|
||||
%% -type(action() :: subscribe | publish | all).
|
||||
%%
|
||||
%% -type(topic_filters() :: string()).
|
||||
%%
|
||||
%% -type(topics() :: [topic_filters() | {eq, topic_filters()}]).
|
||||
%%
|
||||
%% -type(permission() :: allow | deny).
|
||||
%%
|
||||
%% -type(rule() :: {permission(), who(), access(), topics()} | {permission(), all}).
|
||||
%%--------------------------------------------------------------------
|
||||
|
||||
{allow, {username, {re, "^dashboard$"}}, subscribe, ["$SYS/#"]}.
|
||||
|
||||
{allow, {ipaddr, "127.0.0.1"}, all, ["$SYS/#", "#"]}.
|
||||
|
||||
{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
|
||||
|
||||
{allow, all}.
|
||||
92
docker/data/emqx/etc/emqx.conf
Normal file
92
docker/data/emqx/etc/emqx.conf
Normal file
@@ -0,0 +1,92 @@
|
||||
## NOTE:
|
||||
## This config file overrides data/configs/cluster.hocon,
|
||||
## and is merged with environment variables which start with 'EMQX_' prefix.
|
||||
##
|
||||
## Config changes made from EMQX dashboard UI, management HTTP API, or CLI
|
||||
## are stored in data/configs/cluster.hocon.
|
||||
## To avoid confusion, please do not store the same configs in both files.
|
||||
##
|
||||
## See https://docs.emqx.com/en/enterprise/v5.0/configuration/configuration.html
|
||||
## Configuration full example can be found in emqx.conf.example
|
||||
|
||||
node {
|
||||
name = "emqx@177.7.0.12"
|
||||
cookie = "emqxsecretcookie"
|
||||
data_dir = "data"
|
||||
}
|
||||
|
||||
cluster {
|
||||
name = emqxcl
|
||||
discovery_strategy = manual
|
||||
}
|
||||
|
||||
|
||||
dashboard {
|
||||
listeners.http {
|
||||
bind = 18083
|
||||
}
|
||||
default_username = "admin"
|
||||
default_password = "admin123"
|
||||
}
|
||||
|
||||
authorization {
|
||||
deny_action = ignore
|
||||
no_match = allow
|
||||
cache = { enable = true }
|
||||
}
|
||||
|
||||
|
||||
## http 认证
|
||||
authentication = [
|
||||
{
|
||||
mechanism = password_based
|
||||
backend = http
|
||||
enable = true
|
||||
method = post
|
||||
url = "http://java:8080/iot/tool/mqtt/authv5"
|
||||
body {
|
||||
clientid = "${clientid}"
|
||||
username = "${username}"
|
||||
password = "${password}"
|
||||
peerhost = "${peerhost}"
|
||||
}
|
||||
headers {
|
||||
"Content-Type" = "application/json"
|
||||
"X-Request-Source" = "EMQX"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
# WebHook(匹配上线和下线规则后触发)
|
||||
bridges {
|
||||
webhook.fastbee_hook =
|
||||
{
|
||||
enable = true
|
||||
connect_timeout = 15s
|
||||
retry_interval = 60s
|
||||
pool_type = random
|
||||
pool_size = 8
|
||||
enable_pipelining = 100
|
||||
max_retries = 2
|
||||
request_timeout = 15s
|
||||
method = post
|
||||
url = "http://java:8080/iot/tool/mqtt/webhookv5"
|
||||
body = "{\"clientid\" : \"${clientid}\",\"event\" : \"${event}\",\"peername\" : \"${peername}\"}"
|
||||
headers = { accept = "application/json" "cache-control" = "no-cache" connection = "keep-alive" "content-type" = "application/json" "keep-alive" = "timeout=5"}
|
||||
}
|
||||
}
|
||||
|
||||
# 规则(处理上线和下线)
|
||||
rule_engine {
|
||||
ignore_sys_message = true
|
||||
jq_function_default_timeout = 10s
|
||||
rules.fastbee_rule =
|
||||
{
|
||||
sql = "SELECT * FROM \"t/#\",\"$events/client_connected\", \"$events/client_disconnected\", \"$events/session_subscribed\""
|
||||
actions = ["webhook:fastbee_hook"]
|
||||
enable = true
|
||||
description = "处理设备上下线和订阅完主题的规则"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
docker/data/java/libtaos.so
Normal file
BIN
docker/data/java/libtaos.so
Normal file
Binary file not shown.
1
docker/data/java/放置fastbee-admin.jar包.txt
Normal file
1
docker/data/java/放置fastbee-admin.jar包.txt
Normal file
@@ -0,0 +1 @@
|
||||
springboot打包后的文件
|
||||
2607
docker/data/mysql/initdb/fastbee2.0.sql
Normal file
2607
docker/data/mysql/initdb/fastbee2.0.sql
Normal file
File diff suppressed because one or more lines are too long
0
docker/data/nginx/h5/放置移动端h5打包文件.txt
Normal file
0
docker/data/nginx/h5/放置移动端h5打包文件.txt
Normal file
91
docker/data/nginx/nginx-emqx.conf
Normal file
91
docker/data/nginx/nginx-emqx.conf
Normal file
@@ -0,0 +1,91 @@
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
gzip on;
|
||||
gzip_min_length 1k;
|
||||
gzip_buffers 16 64K;
|
||||
gzip_http_version 1.1;
|
||||
gzip_comp_level 5;
|
||||
gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
|
||||
gzip_vary on;
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
|
||||
# Http跳转Https
|
||||
# server {
|
||||
# listen 80;
|
||||
# server_name localhost;
|
||||
# location / {
|
||||
# rewrite ^(.*) https://$server_name$1 permanent;
|
||||
# }
|
||||
# }
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
# SSL 默认访问端口号为443
|
||||
listen 443 ssl;
|
||||
server_name localhost;
|
||||
charset utf-8;
|
||||
|
||||
# 证书文件的路径
|
||||
ssl_certificate /usr/share/nginx/ssl/fastbee.crt;
|
||||
# 私钥文件的路径
|
||||
ssl_certificate_key /usr/share/nginx/ssl/fastbee.key;
|
||||
ssl_session_timeout 10m;
|
||||
# 请按照以下协议配置
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
# 请按照以下套件配置,配置加密套件,写法遵循openssl 标准
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
# 前端
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
# H5移动端
|
||||
location /h5 {
|
||||
alias /usr/share/nginx/h5/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
# 后端接口
|
||||
location /prod-api/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://java:8080/;
|
||||
}
|
||||
|
||||
# wss连接代理到ws
|
||||
location /mqtt {
|
||||
proxy_pass http://emqx:8083/mqtt;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-for $remote_addr;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'Upgrade';
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,17 +20,49 @@ http {
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
|
||||
# Http跳转Https
|
||||
# server {
|
||||
# listen 80;
|
||||
# server_name localhost;
|
||||
# location / {
|
||||
# rewrite ^(.*) https://$server_name$1 permanent;
|
||||
# }
|
||||
# }
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 80;
|
||||
|
||||
# SSL 默认访问端口号为443
|
||||
listen 443 ssl;
|
||||
server_name localhost;
|
||||
charset utf-8;
|
||||
|
||||
# 证书文件的路径
|
||||
ssl_certificate /usr/share/nginx/ssl/fastbee.crt;
|
||||
# 私钥文件的路径
|
||||
ssl_certificate_key /usr/share/nginx/ssl/fastbee.key;
|
||||
ssl_session_timeout 10m;
|
||||
# 请按照以下协议配置
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
# 请按照以下套件配置,配置加密套件,写法遵循openssl 标准
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
# 前端
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
# H5移动端
|
||||
location /h5 {
|
||||
alias /usr/share/nginx/h5/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
# 后端接口
|
||||
location /prod-api/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@@ -39,12 +71,16 @@ http {
|
||||
proxy_pass http://java:8080/;
|
||||
}
|
||||
|
||||
location /api/v4/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://emqx:8081/api/v4/;
|
||||
# wss连接代理到ws
|
||||
location /mqtt {
|
||||
proxy_pass http://java:8083/mqtt;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-for $remote_addr;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'Upgrade';
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
68
docker/data/nginx/ssl/fastbee.crt
Normal file
68
docker/data/nginx/ssl/fastbee.crt
Normal file
@@ -0,0 +1,68 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIGujCCBaKgAwIBAgIQCEZHO+Au3dO0pmMgFV+CXDANBgkqhkiG9w0BAQsFADBf
|
||||
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
||||
d3cuZGlnaWNlcnQuY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vduLz+QZiIh8IYL+Z6QWgTZ9e2jnV8juumX1I8Ge
|
||||
7cZdtNnTCB8hFfwGLUA=
|
||||
-----END CERTIFICATE-----
|
||||
27
docker/data/nginx/ssl/fastbee.key
Normal file
27
docker/data/nginx/ssl/fastbee.key
Normal file
@@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEowIBAAKCAQEArMBuC6MXRP7NaP5ux7nZmuOy2wKY6xWk/i2POrfGSnX0IeY7
|
||||
phoGliH2EBa+UyCArj5B960UYDkpAmh5uCmDOO1Zs4VPwdoyj+OA6Up/LJXVg/tx
|
||||
FvZfDkpk7lTjAQz4OcYXxv+iMxDkpEnnlLRsUlUs2JdQUAXEzjwlKVVUqzEZ+9QY
|
||||
+BLb88bDQEBjaE4+JH95/oRJAby3OH/AXljswh0VUbj3S8pAbiI6f8xoWSn9mjPS
|
||||
GIlABYDgWma2T0RD9F7sbY7JS/1njPA67i8vzVRMnpkMvYLt4a2qG1THUpFysmT0
|
||||
R2OOb8DlOZiPhnZkxEvUGeDx8y34FSucWLQTvwIDAQABAoIBAAdXly9bCCZZ8540
|
||||
9vDGklwStcuFib0VsQSCKGZx4LVrdZI3RQbwCW86FElmXg9BM2O0dUmy8bAnqpMi
|
||||
oGgjKfBlp6+8lVsDP62wsqe3qQraqpxIauvZ65WIGrZ42LxDskBQwTpakdwJXMTE
|
||||
Xoy9Ollcq2JG1BZo/sG9+d2O3EfGS/yCb0PemXMN+1L3Lds4LaVbWhkJTvRMYpQU
|
||||
m4wdRnAoKW1GKhFy9mvZ70HROPgmZ+jJkj63ZiOQyIpH1XlM6POdJCJx70ppZ6PP
|
||||
ckjwvaV7wrrIYxK/tIWfDk4V+VxMc5tFJtjrNB/FwDAqBm9ltT1LjfN/j/cpQtZ7
|
||||
xk3kKSkCgYEA2Zo9tOMGdU/1lOZJ2MGQ2kRAeNfcgA/ZA7FlIAoqMc52/OrIiO4u
|
||||
oAWJ5VkQNhgXazbEMl8ifI3fnSCcEjIcL3zVqIdFAeTOv+Wg1quK/TVENiG1uVnc
|
||||
Kr/YCbuD0DLXgZ/Szm0+dwYxcRHb5oHpsE0XNl0mEpQUnCbxrSYOKNsCgYEAyzwk
|
||||
bXczNjx90phzbIYqHG7LmZvWWKa7mqISL8RvyXhhzy9fXoBKhUtkC6XazYaYCO6F
|
||||
mvSRT9BT/sRV9YgoOONHxscNMv7I2mKg8R6TDIFS/tq3E4A35YMvbVo4k/LfzExZ
|
||||
FKis6KuUfnA216++CaVAfIRTLSHsO4K2Hw6wE+0CgYEAimB3lSw50yhB96pqk5ik
|
||||
UOjORwqegiGR07Nfp3xPUNUG/dcgJ1Ov+rsK8fotQPkZC2kMYyv0dliSNw2hskCD
|
||||
g/9Sr5U14PpsL8QK//ierl7NPc86DOCEDftpmubP7/ok6Z2FJRh7fJ1Hm6vLt04u
|
||||
GZssg7nAmFfqs1JgpcdpgbkCgYAOo+F35TtSL99ceVDvQ2brL2wJP7mcHz6qb/xh
|
||||
ZoQq/joFg8MZ+qHjoj+tux/c6FIxaoVDWVTSbA5w7tHGYy2Kk4zLG/Gud74eRTaU
|
||||
yAANyY8h/r1rcTQVm3KiLPqgZcGLZQCRxWjXRezngsvgk69b4ISZs6qOOMBctRjL
|
||||
efJjLQKBgFGdU3jg/+MctfR7N2yj3DHfPw6eya+yCjuY01S5E0oEJSE3yiLw7vPQ
|
||||
kHeyZ5cEXD9y7VTCsfuYqsEwxKViBRc8xyyS7kYEEORLz/sAVU2V3TN7aKVinrEn
|
||||
MnKh1m2n4wno3AE4huJFbPuXqJO3iUkfhIuLkCFyZtEd72JFO9ns
|
||||
-----END RSA PRIVATE KEY-----
|
||||
0
docker/data/nginx/ssl/放置ssl证书.txt
Normal file
0
docker/data/nginx/ssl/放置ssl证书.txt
Normal file
0
docker/data/nginx/vue/放置前端打包文件.txt
Normal file
0
docker/data/nginx/vue/放置前端打包文件.txt
Normal file
0
docker/data/nginx/www/部署官网.txt
Normal file
0
docker/data/nginx/www/部署官网.txt
Normal file
0
docker/data/tdengine/tdengine文件.txt
Normal file
0
docker/data/tdengine/tdengine文件.txt
Normal file
264
docker/settings.xml
Normal file
264
docker/settings.xml
Normal file
@@ -0,0 +1,264 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<!--
|
||||
| This is the configuration file for Maven. It can be specified at two levels:
|
||||
|
|
||||
| 1. User Level. This settings.xml file provides configuration for a single user,
|
||||
| and is normally provided in ${user.home}/.m2/settings.xml.
|
||||
|
|
||||
| NOTE: This location can be overridden with the CLI option:
|
||||
|
|
||||
| -s /path/to/user/settings.xml
|
||||
|
|
||||
| 2. Global Level. This settings.xml file provides configuration for all Maven
|
||||
| users on a machine (assuming they're all using the same Maven
|
||||
| installation). It's normally provided in
|
||||
| ${maven.conf}/settings.xml.
|
||||
|
|
||||
| NOTE: This location can be overridden with the CLI option:
|
||||
|
|
||||
| -gs /path/to/global/settings.xml
|
||||
|
|
||||
| The sections in this sample file are intended to give you a running start at
|
||||
| getting the most out of your Maven installation. Where appropriate, the default
|
||||
| values (values used when the setting is not specified) are provided.
|
||||
|
|
||||
|-->
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
<!-- localRepository
|
||||
| The path to the local repository maven will use to store artifacts.
|
||||
|
|
||||
| Default: ${user.home}/.m2/repository
|
||||
<localRepository>/path/to/local/repo</localRepository>
|
||||
-->
|
||||
|
||||
<!-- interactiveMode
|
||||
| This will determine whether maven prompts you when it needs input. If set to false,
|
||||
| maven will use a sensible default value, perhaps based on some other setting, for
|
||||
| the parameter in question.
|
||||
|
|
||||
| Default: true
|
||||
<interactiveMode>true</interactiveMode>
|
||||
-->
|
||||
|
||||
<!-- offline
|
||||
| Determines whether maven should attempt to connect to the network when executing a build.
|
||||
| This will have an effect on artifact downloads, artifact deployment, and others.
|
||||
|
|
||||
| Default: false
|
||||
<offline>false</offline>
|
||||
-->
|
||||
|
||||
<!-- pluginGroups
|
||||
| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
|
||||
| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
|
||||
| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
|
||||
|-->
|
||||
<pluginGroups>
|
||||
<!-- pluginGroup
|
||||
| Specifies a further group identifier to use for plugin lookup.
|
||||
<pluginGroup>com.your.plugins</pluginGroup>
|
||||
-->
|
||||
</pluginGroups>
|
||||
|
||||
<!-- proxies
|
||||
| This is a list of proxies which can be used on this machine to connect to the network.
|
||||
| Unless otherwise specified (by system property or command-line switch), the first proxy
|
||||
| specification in this list marked as active will be used.
|
||||
|-->
|
||||
<proxies>
|
||||
<!-- proxy
|
||||
| Specification for one proxy, to be used in connecting to the network.
|
||||
|
|
||||
<proxy>
|
||||
<id>optional</id>
|
||||
<active>true</active>
|
||||
<protocol>http</protocol>
|
||||
<username>proxyuser</username>
|
||||
<password>proxypass</password>
|
||||
<host>proxy.host.net</host>
|
||||
<port>80</port>
|
||||
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
|
||||
</proxy>
|
||||
-->
|
||||
</proxies>
|
||||
|
||||
<!-- servers
|
||||
| This is a list of authentication profiles, keyed by the server-id used within the system.
|
||||
| Authentication profiles can be used whenever maven must make a connection to a remote server.
|
||||
|-->
|
||||
<servers>
|
||||
<!-- server
|
||||
| Specifies the authentication information to use when connecting to a particular server, identified by
|
||||
| a unique name within the system (referred to by the 'id' attribute below).
|
||||
|
|
||||
| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
|
||||
| used together.
|
||||
|
|
||||
<server>
|
||||
<id>deploymentRepo</id>
|
||||
<username>repouser</username>
|
||||
<password>repopwd</password>
|
||||
</server>
|
||||
-->
|
||||
|
||||
<!-- Another sample, using keys to authenticate.
|
||||
<server>
|
||||
<id>siteServer</id>
|
||||
<privateKey>/path/to/private/key</privateKey>
|
||||
<passphrase>optional; leave empty if not used.</passphrase>
|
||||
</server>
|
||||
-->
|
||||
</servers>
|
||||
|
||||
<!-- mirrors
|
||||
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
|
||||
|
|
||||
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
|
||||
| However, this repository may have problems with heavy traffic at times, so people have mirrored
|
||||
| it to several places.
|
||||
|
|
||||
| That repository definition will have a unique id, so we can create a mirror reference for that
|
||||
| repository, to be used as an alternate download site. The mirror site will be the preferred
|
||||
| server for that repository.
|
||||
|-->
|
||||
<mirrors>
|
||||
<!-- mirror
|
||||
| Specifies a repository mirror site to use instead of a given repository. The repository that
|
||||
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
|
||||
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
||||
|
|
||||
<mirror>
|
||||
<id>mirrorId</id>
|
||||
<mirrorOf>repositoryId</mirrorOf>
|
||||
<name>Human Readable Name for this Mirror.</name>
|
||||
<url>http://my.repository.com/repo/path</url>
|
||||
</mirror>
|
||||
-->
|
||||
<!--阿里maven镜像-->
|
||||
<mirror>
|
||||
<id>aliyun</id>
|
||||
<mirrorOf>central</mirrorOf>
|
||||
<name>aliyun maven</name>
|
||||
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
|
||||
<!-- profiles
|
||||
| This is a list of profiles which can be activated in a variety of ways, and which can modify
|
||||
| the build process. Profiles provided in the settings.xml are intended to provide local machine-
|
||||
| specific paths and repository locations which allow the build to work in the local environment.
|
||||
|
|
||||
| For example, if you have an integration testing plugin - like cactus - that needs to know where
|
||||
| your Tomcat instance is installed, you can provide a variable here such that the variable is
|
||||
| dereferenced during the build process to configure the cactus plugin.
|
||||
|
|
||||
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
|
||||
| section of this document (settings.xml) - will be discussed later. Another way essentially
|
||||
| relies on the detection of a system property, either matching a particular value for the property,
|
||||
| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
|
||||
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
|
||||
| Finally, the list of active profiles can be specified directly from the command line.
|
||||
|
|
||||
| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
|
||||
| repositories, plugin repositories, and free-form properties to be used as configuration
|
||||
| variables for plugins in the POM.
|
||||
|
|
||||
|-->
|
||||
<profiles>
|
||||
<!-- profile
|
||||
| Specifies a set of introductions to the build process, to be activated using one or more of the
|
||||
| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
|
||||
| or the command line, profiles have to have an ID that is unique.
|
||||
|
|
||||
| An encouraged best practice for profile identification is to use a consistent naming convention
|
||||
| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
|
||||
| This will make it more intuitive to understand what the set of introduced profiles is attempting
|
||||
| to accomplish, particularly when you only have a list of profile id's for debug.
|
||||
|
|
||||
| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
|
||||
<profile>
|
||||
<id>jdk-1.4</id>
|
||||
|
||||
<activation>
|
||||
<jdk>1.4</jdk>
|
||||
</activation>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>jdk14</id>
|
||||
<name>Repository for JDK 1.4 builds</name>
|
||||
<url>http://www.myhost.com/maven/jdk14</url>
|
||||
<layout>default</layout>
|
||||
<snapshotPolicy>always</snapshotPolicy>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
-->
|
||||
|
||||
<!--
|
||||
| Here is another profile, activated by the system property 'target-env' with a value of 'dev',
|
||||
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration
|
||||
| might hypothetically look like:
|
||||
|
|
||||
| ...
|
||||
| <plugin>
|
||||
| <groupId>org.myco.myplugins</groupId>
|
||||
| <artifactId>myplugin</artifactId>
|
||||
|
|
||||
| <configuration>
|
||||
| <tomcatLocation>${tomcatPath}</tomcatLocation>
|
||||
| </configuration>
|
||||
| </plugin>
|
||||
| ...
|
||||
|
|
||||
| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
|
||||
| anything, you could just leave off the <value/> inside the activation-property.
|
||||
|
|
||||
<profile>
|
||||
<id>env-dev</id>
|
||||
|
||||
<activation>
|
||||
<property>
|
||||
<name>target-env</name>
|
||||
<value>dev</value>
|
||||
</property>
|
||||
</activation>
|
||||
|
||||
<properties>
|
||||
<tomcatPath>/path/to/tomcat/instance</tomcatPath>
|
||||
</properties>
|
||||
</profile>
|
||||
-->
|
||||
</profiles>
|
||||
|
||||
<!-- activeProfiles
|
||||
| List of profiles that are active for all builds.
|
||||
|
|
||||
<activeProfiles>
|
||||
<activeProfile>alwaysActiveProfile</activeProfile>
|
||||
<activeProfile>anotherAlwaysActiveProfile</activeProfile>
|
||||
</activeProfiles>
|
||||
-->
|
||||
</settings>
|
||||
11
docker/sources.list
Normal file
11
docker/sources.list
Normal file
@@ -0,0 +1,11 @@
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic main restricted universe multiverse
|
||||
# deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic main restricted universe multiverse
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||
# deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main restricted universe multiverse
|
||||
# deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main restricted universe multiverse
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||
# deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||
|
||||
# deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||
# deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||
Reference in New Issue
Block a user