Browse Source

配置更改

master
La123123 3 days ago
parent
commit
acd01e8bcb
  1. 6
      im-platform/src/main/resources/application-dev.yml
  2. 2
      im-platform/src/main/resources/application.yml
  3. 2
      im-uniapp/.env.js
  4. 2
      im-uniapp/vite.config.js
  5. 2
      im-web/vue.config.js

6
im-platform/src/main/resources/application-dev.yml

@ -3,15 +3,15 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/im_platform?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: root
password: root
password: JtnA5H6PfGHzkfzx
data:
redis:
host: localhost
port: 6379
minio:
endpoint: http://127.0.0.1:9000 #内网地址
domain: http://127.0.0.1:9000 #外网访问地址
endpoint: http://127.0.0.1:9001 #内网地址
domain: http://127.0.0.1:9001 #外网访问地址
accessKey: minioadmin
secretKey: minioadmin
bucketName: box-im

2
im-platform/src/main/resources/application.yml

@ -1,5 +1,5 @@
server:
port: 8888
port: 8889
spring:
profiles:
active: dev # 环境 dev|test|prod

2
im-uniapp/.env.js

@ -9,7 +9,7 @@ UNI_APP.EMO_URL = "/static/emoji/";
// #endif
if(ENV=="DEV"){
UNI_APP.BASE_URL = "http://127.0.0.1:8888";
UNI_APP.BASE_URL = "http://127.0.0.1:8889";
UNI_APP.WS_URL = "ws://127.0.0.1:8878/im";
// H5 走本地代理解决跨域问题
// #ifdef H5

2
im-uniapp/vite.config.js

@ -9,7 +9,7 @@ export default defineConfig({
'/api': {
rewrite: path => path.replace(/^\/api/, ''),
logLevel: 'debug',
target: 'http://127.0.0.1:8888',
target: 'http://127.0.0.1:8889',
changeOrigin: true
}
}

2
im-web/vue.config.js

@ -5,7 +5,7 @@ module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://127.0.0.1:8888',
target: 'http://127.0.0.1:8889',
changeOrigin: true,
ws: false,
pathRewrite: {

Loading…
Cancel
Save