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

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

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

2
im-uniapp/.env.js

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

2
im-uniapp/vite.config.js

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

2
im-web/vue.config.js

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

Loading…
Cancel
Save