Browse Source

正式环境本地化

xiewj 2 years ago
parent
commit
1a22c403c1

+ 22 - 14
sxz-application/src/main/resources/application-prod.properties

@@ -1,9 +1,9 @@
-server.port=8088
-server.file.location=/mnt/OneKeyDecorate/
+server.port=8089
+server.file.location=/web-shared/OneKeyDecorate/
 upload.file.location=${server.file.location}upload/
 spring.session.store-type=REDIS
 #log
-logging.file.path=/mnt/sxz_log/
+logging.file.path=/mnt/change_prod/logs/
 logging.config=classpath:logback-spring.xml
 logging.level.com.fdkk=debug
 #thymeleaf配置
@@ -19,9 +19,9 @@ spring.servlet.multipart.enabled=true
 spring.mvc.async.request-timeout=600000
 spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
 #数据库配置
-spring.datasource.url=jdbc:mysql://localhost:3306/change_clothes?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
+spring.datasource.url=jdbc:mysql://192.168.0.47:3306/change_clothes_prod?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
 spring.datasource.username=root
-spring.datasource.password=4dyjkz%
+spring.datasource.password=123123
 # Hikari will use the above plus the following to setup connection pooling
 spring.datasource.type=com.zaxxer.hikari.HikariDataSource
 spring.datasource.hikari.minimum-idle=5
@@ -32,11 +32,11 @@ spring.datasource.hikari.pool-name=DatebookHikariCP
 spring.datasource.hikari.max-lifetime=1800000
 spring.datasource.hikari.connection-timeout=30000
 #rabbitmq
-spring.rabbitmq.host=127.0.0.1
+spring.rabbitmq.host=192.168.0.47
 spring.rabbitmq.port=5672
 spring.rabbitmq.apiport=15672
-spring.rabbitmq.username=admin
-spring.rabbitmq.password=sxz12341
+spring.rabbitmq.username=guest
+spring.rabbitmq.password=guest
 ##??????
 spring.rabbitmq.listener.simple.retry.max-attempts=3
 ##???????????false????????????????????????????
@@ -74,8 +74,8 @@ j2cache.open-spring-cache=true
 j2cache.j2CacheConfig.serialization=fastjson
 j2cache.cache-clean-mode=active
 j2cache.redis-client=lettuce
-j2cache.j2CacheConfig.hosts=127.0.0.1:6379
-j2cache.j2CacheConfig.password=sxz123321SxZ@
+j2cache.j2CacheConfig.hosts=192.168.0.47:6379
+j2cache.j2CacheConfig.password=
 j2cache.j2CacheConfig.database=15
 oss.point=http://oss-cn-shenzhen.aliyuncs.com
 oss.key=LTAIUrvuHqj8pvry
@@ -83,13 +83,21 @@ oss.secrey=JLOVl0k8Ke0aaM8nLMMiUAZ3EiiqI4
 oss.bucket=4dkankan
 #oss类型为oss(阿里云)或s3(亚马逊)
 oss.type=oss
+#prefix.ali=https://houseoss.4dkankan.com/
+#main.url=https://www.4dkankan.com/
+#build.url=http://221.4.210.172:28100/
+#light.build.url=http://221.4.210.172:28100/
+#model.build.url=http://221.4.210.172:28100/
+##.max转datasmith和obj加减面url
+#max.obj.url=http://120.78.65.189:8080/
+#maxToDatasmith.url=http://192.168.0.75:8001/
 prefix.ali=https://houseoss.4dkankan.com/
 main.url=https://www.4dkankan.com/
-build.url=http://221.4.210.172:28100/
-light.build.url=http://221.4.210.172:28100/
-model.build.url=http://221.4.210.172:28100/
+build.url=http://192.168.0.49:8100/
+light.build.url=http://192.168.0.49:8100/
+model.build.url=http://192.168.0.49:8100/
 #.max转datasmith和obj加减面url
-max.obj.url=http://120.78.65.189:8080/
+max.obj.url=http://192.168.0.75:8080/
 maxToDatasmith.url=http://192.168.0.75:8001/
 #缓存接口日志时间(单位小时)
 logsTimeOut=8

+ 11 - 11
sxz-core/src/main/java/com/fdkk/sxz/other/mq/TopicRabbitConfig.java

@@ -14,37 +14,37 @@ import java.util.Map;
 public class TopicRabbitConfig {
 
 
-    public final static String CHANGE = "topic.chang";
+    public final static String CHANGE = "topic.chang.prod";
     //灯光预览
-    public final static String LIGHT = "topic.light";
+    public final static String LIGHT = "topic.light.prod";
 
     ////图片渲染
     //public final static String MODEL_CREAT_THUM = "topic.modelCreatThum";
 
     //上传模型
-    public final static String MODEL = "topic.model";
+    public final static String MODEL = "topic.model.prod";
     //上传模型处理业务
-    public final static String MODEL_BIZ = "topic.modelBiz";
+    public final static String MODEL_BIZ = "topic.modelBiz.prod";
     // 线下版本使用队列
-    public final static String MODEL_BIZ_3D = "topic.3dModelBiz";
+    public final static String MODEL_BIZ_3D = "topic.3dModelBiz.prod";
     //"更新模型库,syncmodel
-    public final static String SYNCMODEL = "topic.syncmodel";
+    public final static String SYNCMODEL = "topic.syncmodel.prod";
 
     //上传后提交模型
-    public final static String ADDMODEL = "topic.addModel";
+    public final static String ADDMODEL = "topic.addModel.prod";
     //上传后提交模型3D端
-    public final static String ADDMODELTO3D = "topic.addmodelto3d";
+    public final static String ADDMODELTO3D = "topic.addmodelto3d.prod";
     //处理
-    public final static String MVIEW = "delay.mview";
+    public final static String MVIEW = "delay.mview.prod";
 
     /**
      * 普通交换机
      */
-    public final static String TOPICE = "topicExchange";
+    public final static String TOPICE = "topicExchange.prod";
     /**
      * 延迟消息交换机
      */
-    public final static String DELAY_EXCHANGE = "delay.exchange";
+    public final static String DELAY_EXCHANGE = "delay.exchange.prod";
 
     @Bean
     public CustomExchange delayMessageExchange() {