Skip to content

Commit 1d61731

Browse files
author
姜作辉
committedJan 17, 2023
https://github.com/opensergo/opensergo-dashboard/issues/11
1 parent 5e0dab6 commit 1d61731

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed
 

‎opensergo-dashboard-distribution/src/main/resources/bin/startup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ if [ ! -f "${BASE_DIR}/logs/start.out" ]; then
4848
fi
4949

5050
JAVA_OPT="${JAVA_OPT} -Xms512m -Xmx512m -Xmn256m"
51-
JAVA_OPT="${JAVA_OPT} -Dloader.path=${BASE_DIR}/opt-libs -jar ${BASE_DIR}/lib/${SERVER}.jar"
51+
JAVA_OPT="${JAVA_OPT} -Dloader.path=${BASE_DIR}/opt-libs -jar ${BASE_DIR}/lib/${SERVER}.jar ${BASE_DIR}/lib/${SERVER}.jar --spring.config.location=${BASE_DIR}/conf/application.yaml"
5252
nohup "$JAVA" ${JAVA_OPT} dubbo.admin >> ${BASE_DIR}/logs/catlog.out 2>&1 &
5353
echo "${SERVER} is starting,you can check the ${BASE_DIR}/logs/catlog.out"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#spring settings
2+
server:
3+
servlet:
4+
encoding:
5+
charset: UTF-8
6+
force: true
7+
enabled: true
8+
9+
#cookie name setting
10+
session:
11+
cookie:
12+
name: sentinel_dashboard_cookie
13+
14+
spring:
15+
datasource:
16+
url: jdbc:mysql://localhost:3306/opensergo?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
17+
username: root
18+
password:
19+
20+
#logging settings
21+
logging:
22+
level:
23+
org.springframework.web: INFO
24+
file:
25+
name: ${user.home}/logs/csp/sentinel-dashboard.log
26+
pattern:
27+
file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
28+
#logging.pattern.console= %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
29+
30+
#auth settings
31+
auth:
32+
filter:
33+
exclude-urls: /,/sentinel,/auth/login,/auth/logout,/registry/machine,/version,/api/**
34+
exclude-url-suffixes: htm,html,js,css,map,ico,ttf,woff,png
35+
# If auth.enabled=false, Sentinel console disable login
36+
username: sentinel
37+
password: sentinel
38+
39+
# Inject the dashboard version. It's required to enable
40+
# filtering in pom.xml for this resource file.
41+
sentinel:
42+
dashboard:
43+
version: @project.version@
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
CREATE TABLE `application`
2+
(
3+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
4+
`name` varchar(100) NOT NULL,
5+
`sha256` char(64) NOT NULL,
6+
PRIMARY KEY (`id`),
7+
UNIQUE KEY `uniq_name` (`name`)
8+
) DEFAULT CHARSET=utf8mb4;
9+
10+
CREATE TABLE `metadata`
11+
(
12+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
13+
`sha256` char(64) NOT NULL,
14+
`app_name` varchar(100) NOT NULL,
15+
`metadata` mediumtext NOT NULL,
16+
PRIMARY KEY (`id`),
17+
UNIQUE KEY `uniq_name` (`app_name`)
18+
) DEFAULT CHARSET=utf8mb4;
19+

0 commit comments

Comments
 (0)
Please sign in to comment.