Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fangyeqing
/
xkl-interface
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
fangyeqing
8 years ago
Commit
e19158316c50fadde1ba0ed0740d783985f21b80
1 parent
cb6095fb
ADD:add https
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
30 deletions
README.md
src/main/resources/214021316500442.pfx
src/main/resources/application.properties
src/main/resources/application.properties.fyq
src/main/resources/application.properties.online
src/main/resources/application.properties.online.https
src/main/resources/public/index.html.online.https
README.md
View file @
e191583
# xkl-interface程序说明
## 部署
139.
129.166.85
### https证书
生成ssl证书${user.home}/.keystore,其中密码设置为xkl2016:
```
keytool -genkey -alias xkl-demo -keypass xkl2016 -keyalg RSA -keysize 1024 -validity 1024 -keystore ~/.keystore -storepass xkl2016 -dname "CN=139.129.166.85, OU=hanhezy, O=hanhezy, L=bj, ST=bj, C=cn"
```
查看生成的key
```
keytool -list -v -keystore .keystore -storepass xkl2016
```
139.
129.166.85:8090
### 部署
代码
...
...
@@ -24,6 +13,7 @@ cd xkl-interface
启动
```
bin/start.sh
bin/start-https.sh
```
停止
```
...
...
@@ -46,7 +36,7 @@ redis.password=r-m5e7cedd3124afd4:XIkaiLURedis2016
```
## 测试swagger界面
浏览器访问:
https://
139.129.166.85
:8090/
https://
www.hanhezy.com
:8090/
## 测试用例地址
http://gitlab.hanhezy.com/fyq/xkl-
example
http://gitlab.hanhezy.com/fyq/xkl-
interface-example-all
...
...
src/main/resources/214021316500442.pfx
0 → 100644
View file @
e191583
No preview for this file type
src/main/resources/application.properties
View file @
e191583
server.port
=
8090
#server.ssl.key-store = ${user.home}/.keystore
#server.ssl.key-store-password = xkl2016
#server.ssl.key-password = xkl2016
#MySQL
#spring.datasource.url=jdbc:mysql://localhost:3306/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true
#spring.datasource.username=root
...
...
src/main/resources/application.properties.fyq
View file @
e191583
server.port=8090
#server.ssl.key-store = ${user.home}/.keystore
#server.ssl.key-store-password = xkl2016
#server.ssl.key-password = xkl2016
#MySQL
spring.datasource.url=jdbc:mysql://localhost:3306/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true
spring.datasource.username=root
...
...
src/main/resources/application.properties.online
View file @
e191583
server.port=8090
#server.ssl.key-store = ${user.home}/.keystore
#server.ssl.key-store-password = xkl2016
#server.ssl.key-password = xkl2016
#MySQL
spring.datasource.url=jdbc:mysql://db.hanhezy.com:4096/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true
spring.datasource.username=hanhe
...
...
src/main/resources/application.properties.online.https
View file @
e191583
server.port=8090
server.ssl.key-store = ${user.home}/.keystore
server.ssl.key-store-password = xkl2016
server.ssl.key-password = xkl2016
server.ssl.key-store = classpath:214021316500442.pfx
server.ssl.key-store-password = 214021316500442
server.ssl.keyStoreType = PKCS12
#MySQL
spring.datasource.url=jdbc:mysql://db.hanhezy.com:4096/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true
...
...
src/main/resources/public/index.html.online.https
View file @
e191583
...
...
@@ -27,7 +27,7 @@
if
(
url
&&
url
.
length
>
1
)
{
url
=
decodeURIComponent
(
url
[
1
]);
}
else
{
url
=
"https://
139.129.166.85
:8090/api-docs"
;
url
=
"https://
www.hanhezy.com
:8090/api-docs"
;
}
window
.
swaggerUi
=
new
SwaggerUi
({
url
:
url
,
...
...
Please
register
or
login
to post a comment