Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize the rocketmq-dashboard configuration #73

Closed
Euthpic opened this issue Mar 18, 2021 · 5 comments · Fixed by #182
Closed

How to customize the rocketmq-dashboard configuration #73

Euthpic opened this issue Mar 18, 2021 · 5 comments · Fixed by #182
Assignees
Labels
enhancement New feature or request

Comments

@Euthpic
Copy link

Euthpic commented Mar 18, 2021

I follow the installation instruction(https://segmentfault.com/a/1190000023862693) to install rocketmq in k8s.
Now I want to change rocketmq's default configuration to enable console's password.
Operation(https://github.com/apache/rocketmq-externals/blob/master/rocketmq-console/doc/1_0_0/UserGuide_CN.md):
``
1.在Spring配置文件resources/application.properties中修改 开启登录功能

开启登录功能

rocketmq.config.loginRequired=true

Dashboard文件目录,登录用户配置文件所在目录

rocketmq.config.dataPath=/tmp/rocketmq-console/data
2.确保${rocketmq.config.dataPath}定义的目录存在,并且该目录下创建登录配置文件"users.properties", 如果该目录下不存在此文件,则默认使用resources/users.properties文件。 users.properties文件格式为:

该文件支持热修改,即添加和修改用户时,不需要重新启动console

格式, 每行定义一个用户, username=password[,N] #N是可选项,可以为0 (普通用户); 1 (管理员)

#定义管理员
admin=admin,1

#定义普通用户
user1=user1
user2=user2
``
But I dont konw how to find this two files and edit them.Should I inject them by adding configMap?

@Euthpic
Copy link
Author

Euthpic commented Mar 18, 2021

Env :
k8s : Tencent Cloud v1.18.4-tke.6
rocketmq: 4.5.0

@caigy caigy changed the title How to customize the rocketmq configuration How to customize the rocketmq-dashboard configuration Jul 12, 2022
@caigy caigy added the enhancement New feature or request label Jul 12, 2022
@caigy
Copy link
Contributor

caigy commented Jul 12, 2022

@Euthpic resources/application.properties is in source code of rocketmq-dashboard, please check if it can be injected by environment variables. For users.properties, you should create one and put it the folder ${rocketmq.config.dataPath} defined.

However, rocketmq operator does not support mounting a configMap to rocketmq-dashboard, would you like to submit a PR to solve it?

@zongtanghu
Copy link

zongtanghu commented Sep 29, 2022

@shendong, Can you put forward a pr to support this feature? If you have any question, I will help to fix and implement it!

@shendongsd
Copy link

@shendong, Can you put forward a pr to support this feature? If you have any question, I will help to fix and implement it!

Ok,i will fix this issue

@zongtanghu
Copy link

Okay, it's yours! @shendongsd

caigy added a commit that referenced this issue Sep 25, 2023
* support mounting a configMap to rocketmq-dashboard

* prepare for v0.4.0 development

* support mounting a configMap to rocketmq-dashboard

* support mounting a configMap to rocketmq-dashboard

* format example file

---------

Co-authored-by: shendong <[email protected]>
Co-authored-by: caigy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants