Skip to content

Commit dca1129

Browse files
feat: redis-commander 增加登录用户名密码配置
1 parent 23d6c11 commit dca1129

File tree

6 files changed

+47
-22
lines changed

6 files changed

+47
-22
lines changed

apps/halo/versions/2.2.0/config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"default": "halo",
4343
"random": true,
4444
"rule": "paramCommon",
45-
"envKey": "PANEL_DB_NAME",
45+
"envKey": "PANEL_DB_NAME"
4646
},
4747
{
4848
"type": "text",
@@ -52,7 +52,7 @@
5252
"default": "halo",
5353
"random": true,
5454
"rule": "paramCommon",
55-
"envKey": "PANEL_DB_USER",
55+
"envKey": "PANEL_DB_USER"
5656
},
5757
{
5858
"type": "password",
@@ -62,7 +62,7 @@
6262
"default": "halo",
6363
"random": true,
6464
"rule": "paramComplexity",
65-
"envKey": "PANEL_DB_USER_PASSWORD",
65+
"envKey": "PANEL_DB_USER_PASSWORD"
6666
},
6767
{
6868
"type": "text",
@@ -72,7 +72,7 @@
7272
"default": "admin",
7373
"random": true,
7474
"rule": "paramCommon",
75-
"envKey": "HALO_ADMIN",
75+
"envKey": "HALO_ADMIN"
7676
},
7777
{
7878
"type": "password",
@@ -82,7 +82,7 @@
8282
"default": "halo",
8383
"random": true,
8484
"rule": "paramComplexity",
85-
"envKey": "HALO_ADMIN_PASSWORD",
85+
"envKey": "HALO_ADMIN_PASSWORD"
8686
},
8787
{
8888
"type": "text",

apps/halo/versions/2.3.2/config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"default": "halo",
4343
"random": true,
4444
"rule": "paramCommon",
45-
"envKey": "PANEL_DB_NAME",
45+
"envKey": "PANEL_DB_NAME"
4646
},
4747
{
4848
"type": "text",
@@ -52,7 +52,7 @@
5252
"default": "halo",
5353
"random": true,
5454
"rule": "paramCommon",
55-
"envKey": "PANEL_DB_USER",
55+
"envKey": "PANEL_DB_USER"
5656
},
5757
{
5858
"type": "password",
@@ -62,7 +62,7 @@
6262
"default": "halo",
6363
"random": true,
6464
"rule": "paramComplexity",
65-
"envKey": "PANEL_DB_USER_PASSWORD",
65+
"envKey": "PANEL_DB_USER_PASSWORD"
6666
},
6767
{
6868
"type": "text",
@@ -72,7 +72,7 @@
7272
"default": "admin",
7373
"random": true,
7474
"rule": "paramCommon",
75-
"envKey": "HALO_ADMIN",
75+
"envKey": "HALO_ADMIN"
7676
},
7777
{
7878
"type": "password",
@@ -82,7 +82,7 @@
8282
"default": "halo",
8383
"random": true,
8484
"rule": "paramComplexity",
85-
"envKey": "HALO_ADMIN_PASSWORD",
85+
"envKey": "HALO_ADMIN_PASSWORD"
8686
},
8787
{
8888
"type": "text",

apps/list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"key": "redis-commander",
116116
"name": "Redis-Commander",
117117
"tags": ["Tool"],
118-
"versions": ["0.8.0"],
118+
"versions": ["0.8.1"],
119119
"shortDescZh": "Redis web 管理工具",
120120
"shortDescEn": "Redis web management tool",
121121
"type": "tool",
File renamed without changes.

apps/redis-commander/versions/0.8.0/config.json renamed to apps/redis-commander/versions/0.8.1/config.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,37 @@
1717
"default": "",
1818
"envKey": "PANEL_DB_ROOT_PASSWORD"
1919
},
20+
{
21+
"type": "text",
22+
"labelZh": "登录用户名",
23+
"labelEn": "Username",
24+
"required": true,
25+
"default": "root",
26+
"random": true,
27+
"rule": "paramCommon",
28+
"envKey": "COMMANDER_ADMIN",
29+
"edit": true
30+
},
31+
{
32+
"type": "text",
33+
"labelZh": "登录密码",
34+
"labelEn": "Password",
35+
"required": true,
36+
"default": "P@ssword@redis",
37+
"random": true,
38+
"rule": "paramComplexity",
39+
"envKey": "COMMANDER_PASSWORD",
40+
"edit": true
41+
},
2042
{
2143
"type": "number",
2244
"labelZh": "端口",
2345
"labelEn": "Port",
2446
"required": true,
2547
"default": 8089,
2648
"rule": "paramPort",
27-
"envKey": "PANEL_APP_PORT_HTTP"
49+
"envKey": "PANEL_APP_PORT_HTTP",
50+
"edit": true
2851
}
2952
]
3053
}
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
version: '3'
1+
networks:
2+
1panel-network:
3+
external: true
24
services:
3-
redis-commander:
5+
redis-commander-XnlR:
46
container_name: ${CONTAINER_NAME}
7+
environment:
8+
- REDIS_HOSTS=1panel:${PANEL_DB_HOST}:6379:0:${PANEL_DB_ROOT_PASSWORD}
9+
- HTTP_USER=${COMMANDER_ADMIN}
10+
- HTTP_PASSWORD=${COMMANDER_PASSWORD}
511
hostname: redis-commander
612
image: rediscommander/redis-commander:latest
7-
restart: always
13+
labels:
14+
createdBy: Apps
815
networks:
916
- 1panel-network
10-
environment:
11-
- REDIS_HOSTS=1panel:${PANEL_DB_HOST}:6379:0:${PANEL_DB_ROOT_PASSWORD}
1217
ports:
1318
- ${PANEL_APP_PORT_HTTP}:8081
14-
labels:
15-
createdBy: "Apps"
16-
networks:
17-
1panel-network:
18-
external: true
19+
restart: always
20+
version: "3"

0 commit comments

Comments
 (0)