Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
c9c10b90
Commit
c9c10b90
authored
Sep 29, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加配置
parent
bbbe231d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
1 deletions
+52
-1
config/src/main/resources/config/application-dev.yml
+5
-0
config/src/main/resources/config/application-prod.yml
+12
-1
docs/config/imapi.wecloud.cn.conf
+35
-0
No files found.
config/src/main/resources/config/application-dev.yml
View file @
c9c10b90
...
@@ -19,6 +19,11 @@ spring:
...
@@ -19,6 +19,11 @@ spring:
username
:
root
username
:
root
password
:
123
password
:
123
#//测试外网
# url: jdbc:mysql://18.136.207.16:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
# username: web
# password: axT8knPN5hAP
# Redis配置
# Redis配置
redis
:
redis
:
database
:
0
database
:
0
...
...
config/src/main/resources/config/application-prod.yml
View file @
c9c10b90
...
@@ -30,9 +30,20 @@ spring:
...
@@ -30,9 +30,20 @@ spring:
# port: 6379
# port: 6379
# 飞蛙
# 飞蛙
# datasource:
# url: jdbc:mysql://127.0.0.1:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
# username: web
# password: axT8knPN5hAP
# redis:
# database: 0
# host: 127.0.0.1
# password: JH86uc53r8Ca
# port: 6379
# 国内IM集成版
datasource
:
datasource
:
url
:
jdbc:mysql://127.0.0.1:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://127.0.0.1:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username
:
web
username
:
root
password
:
axT8knPN5hAP
password
:
axT8knPN5hAP
redis
:
redis
:
database
:
0
database
:
0
...
...
docs/config/imapi.wecloud.cn.conf
0 → 100644
View file @
c9c10b90
map
$
http_upgrade
$
connection_upgrade
{
default
upgrade
;
''
close
;
}
server
{
listen
443
ssl
;
server_name
xxx
.
com
;
ssl_certificate
ssl
/
_
.
im199
.
com
.
crt
;
ssl_certificate_key
ssl
/
_
.
im199
.
com
.
key
;
ssl_session_cache
shared
:
SSL
:
1
m
;
ssl_session_timeout
5
m
;
ssl_ciphers
HIGH
:!
aNULL
:!
MD5
;
ssl_prefer_server_ciphers
on
;
location
/
api
{
proxy_pass
http
://
localhost
:
8082
/
api
/;
}
location
/
ws
{
proxy_pass
http
://
localhost
:
8899
/
ws
;
# ws结尾不带"/",实际请求服务器时不会去掉"/ws"
proxy_set_header
Upgrade
$
http_upgrade
;
# 升级协议头
proxy_set_header
Connection
upgrade
;
# 升级长连接协议头
}
location
/ {
root
html
;
index
index
.
html
index
.
htm
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment