Browse Source

fix(增加一个local)

gengyang 5 years ago
parent
commit
b551eefc2b
3 changed files with 52 additions and 0 deletions
  1. 6 0
      pom.xml
  2. 40 0
      src/main/resources/application-local.properties
  3. 6 0
      src/main/resources/logback-spring.xml

+ 6 - 0
pom.xml

@@ -140,6 +140,12 @@
                 <profileActive>prod</profileActive>
             </properties>
         </profile>
+        <profile>
+            <id>local</id>
+            <properties>
+                <profileActive>local</profileActive>
+            </properties>
+        </profile>
     </profiles>
     <build>
         <finalName>${project.artifactId}</finalName>

+ 40 - 0
src/main/resources/application-local.properties

@@ -0,0 +1,40 @@
+server.port=8085
+
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.url=jdbc:mysql://rm-uf618jc32u2o80g55oo.mysql.rds.aliyuncs.com:3306/mochat
+spring.datasource.username=typer
+spring.datasource.password=jch9sh_shl
+spring.datasource.max-idle=10
+spring.datasource.max-wait=10000
+spring.datasource.min-idle=5
+spring.datasource.initial-size=5
+
+mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
+mybatis-plus.configuration.map-underscore-to-camel-case=true
+
+spring.redis.host=r-uf633f3f27aa2174pd.redis.rds.aliyuncs.com
+spring.redis.port=6379
+spring.redis.password=Jch9shshl
+spring.redis.database=7
+spring.redis.timeout=10s
+spring.redis.jedis.pool.min-idle=0
+spring.redis.jedis.pool.max-idle=8
+spring.redis.jedis.pool.max-active=20
+spring.redis.jedis.pool.max-wait=-1ms
+
+#阿里云oss配置(增加一个cdn地址配置)
+aliyun.host=http://mini-short-video-oss.lushenjin.cn/
+aliyun.endpoint=https://oss-cn-hangzhou.aliyuncs.com
+aliyun.accessKeyId=LTAI4FnmkS1SNFkaKb4YZ1ga
+aliyun.accessKeySecret=irLfHOni7ffLU3yAf3LsKEXwQLfrNc
+aliyun.bucketName=mini-short-video-test
+spring.servlet.multipart.max-request-size=10MB
+spring.servlet.multipart.max-file-size=10MB
+
+xxl.sso.server=http://test.sso.mokamrp.com/sso
+xxl.sso.logout.path=/logout
+xxl-sso.excluded.paths=
+xxl.sso.redis.address=redis://xxl-sso:Jch9shshl@r-uf633f3f27aa2174pd.redis.rds.aliyuncs.com:6379/0
+
+menu.host=http://test.space-server.mokamrp.com/space/menu/getMenuInterface?sysCode=1006&userId=
+

+ 6 - 0
src/main/resources/logback-spring.xml

@@ -33,6 +33,11 @@
             </encoder>
         </appender>
     </springProfile>
+    <springProfile name="local">
+        <root level="INFO">
+            <appender-ref ref="CONSOLE" />
+        </root>
+    </springProfile>
     <springProfile name="test">
         <root level="INFO">
             <appender-ref ref="CONSOLE" />
@@ -44,4 +49,5 @@
         </root>
     </springProfile>
 
+
 </configuration>