This commit is contained in:
wulin 2023-11-15 17:43:27 +08:00
commit a4fa0ac410
3 changed files with 4 additions and 18 deletions

View File

@ -13,4 +13,4 @@ WORKDIR /home/qiuguo
COPY ./jar/iot-box-websocket-api.jar /home/qiuguo/iot-box-websocket-api.jar
# 启动网关服务
#ENTRYPOINT ["java","-jar","iot-box-websocket-api.jar"]
CMD ["sh","-c", "java -jar iot-box-websocket-api.jar --spring.profiles.active=prod"]
CMD ["sh","-c", "java -jar iot-box-websocket-api.jar --spring.profiles.active=test"]

View File

@ -1,6 +1,7 @@
package com.qiuguo.iot.admin.http.api.filter;
import com.qiuguo.iot.base.constans.Log4Constans;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.reactivestreams.Subscription;
import org.slf4j.MDC;
@ -37,6 +38,7 @@ public class LogMdcConfiguration {
Hooks.resetOnEachOperator(Log4Constans.PRINT_LOG_ID);
}
@Data
class MdcContextSubscriber<T> implements CoreSubscriber<T> {
private CoreSubscriber<T> coreSubscriber;
public MdcContextSubscriber(CoreSubscriber<T> c){

View File

@ -24,22 +24,6 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
r2dbc:
#注意下面修改 easyorm相关也需要修改
#url: r2dbc:postgresql://localhost:5432/postgres #postgresql请使用此配置
url: r2dbc:mysql://192.168.8.146:30416/qiuguo_iot?ssl=false&serverZoneId=Asia/Shanghai # mysql请使用此配置
#url: r2dbc:h2:file:///./data/h2db/jetlinks
username: root
password: 123456
redis:
# cluster:
# nodes:
# - 127.0.0.1:7001
# - 127.0.0.1:7002
host: 192.168.8.146
port: 32030
password: 123456
timeout: 5000
tianqiapi:
url: https://v0.yiketianqi.com/api?unescape=1&version=v91&appid=23293151&appsecret=Lj6ZMcqn&ext=life
qiuguo:
@ -58,4 +42,4 @@ lac:
Ali:
qianwen: 'sk-8d64677afaf6404cb83ce1910b5b2558'
accesskeId: 'LTAI5t7d1iZb18SvGQhtDnyN'
accesskeySecret: 'j2Cp3uCDGuiA7xZIJmYOCmDhJl9HuJ'
accesskeySecret: 'j2Cp3uCDGuiA7xZIJmYOCmDhJl9HuJ'