代码拉取完成,页面将自动刷新
同步操作将从 防火云/智慧消防物联网系统V1.0 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
CREATE DATABASE `turing-admin` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
CREATE DATABASE `turing-auth` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
CREATE DATABASE `turing_datahandler` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
CREATE DATABASE `turing_device` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
并导入sql目录下的各个sql文件来创建初始化表和初始化数据
SpringCloud使用gitee来作为配置中心 示例配置文件地址
修改gitee上各个微服务配置下的数据库链接信息,并对应修改微服务代码配置yml里面的gitee配置信息
对应修改docker-compose.yml配置文件,执行docker compose up -d
即可启动服务
https://gitee.com/zkturing-tmc/big_fire_data_vue
user www-data;
worker_processes auto;
worker_rlimit_nofile 51200;
events {
use epoll;
worker_connections 51200;
multi_accept on;
}
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log access;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_tokens off;
client_body_buffer_size 1024k;
proxy_connect_timeout 150s;
proxy_send_timeout 150s;
proxy_read_timeout 150s;
proxy_buffer_size 512k;
proxy_buffers 64 64k;
proxy_busy_buffers_size 2048k;
proxy_temp_file_write_size 2048k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
client_header_timeout 120s;
client_body_timeout 120s;
client_max_body_size 300M;
upstream mycluster{
# 对应后端服务地址
server turing-gate.tmc-v1:8765 weight=1;
}
upstream websocket{
# 对应后端服务地址
server turing-datahandler.tmc-v1:2345 weight=1;
}
server {
listen 80;
server_name _;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /threed/ {
root /usr/share/nginx/threed;
}
location /api/ {
#proxy_next_upstream http_502 http_504 error timeout invalid_header;
proxy_set_header Connection "Keep-Alive";
proxy_pass http://mycluster;
proxy_set_header X-Real-IP $remote_addr:8765;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /alarm/websocket {
proxy_pass http://websocket;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。