Skip to content

Commit

Permalink
remove obsolete pulsar-manager.account
Browse files Browse the repository at this point in the history
  • Loading branch information
maranmaran committed May 3, 2024
1 parent 60e6ae6 commit 27e2f28
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 26 deletions.
16 changes: 7 additions & 9 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ Pulsar manager backend is a supplement and improvement to Pulsar broker.

### Supported configurations of backend

| Name | Default |Description
| ------- | ------- | ------- |
| `server.port` | 7750 | Port of backend service |
| `pulsar-manager.account` | pulsar | Login account |
| `pulsar-manager.password` | pulsar | Login password |
| `redirect.host` | localhost | IP address of front-end service |
| `redirect.port` | 9527 | Port of front-end service |
| `insert.stats.interval` | 30000ms | Time interval for collecting statistical information |
| `clear.stats.interval` | 300000ms | Time interval for cleaning statistics |
| Name | Default | Description |
| ----------------------- | --------- | ---------------------------------------------------- |
| `server.port` | 7750 | Port of backend service |
| `redirect.host` | localhost | IP address of front-end service |
| `redirect.port` | 9527 | Port of front-end service |
| `insert.stats.interval` | 30000ms | Time interval for collecting statistical information |
| `clear.stats.interval` | 300000ms | Time interval for cleaning statistics |

### How to set parameters when starting back-end services

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ public LoginController(JwtService jwtService) {
@Autowired
private CasdoorAuthService casdoorAuthService;

@Value("${pulsar-manager.account}")
private String account;

@Value("${pulsar-manager.password}")
private String password;

@ApiOperation(value = "Login pulsar manager")
@ApiResponses({@ApiResponse(code = 200, message = "ok"), @ApiResponse(code = 500, message = "Internal server error")})
@RequestMapping(value = "/login", method = RequestMethod.POST)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@
@Api(description = "Functions under this class are available to super user.")
public class UsersController {

@Value("${user.management.enable}")
private boolean userManagementEnable;

@Value("${pulsar-manager.account}")
private String account;

private final UsersRepository usersRepository;

private final UsersService usersService;
Expand Down
5 changes: 0 additions & 5 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ backend.broker.pulsarAdmin.tlsEnableHostnameVerification=false

jwt.secret=dab1c8ba-b01b-11e9-b384-186590e06885
jwt.sessionTime=2592000
# If user.management.enable is true, the following account and password will no longer be valid.
pulsar-manager.account=pulsar
pulsar-manager.password=pulsar
# If true, the database is used for user management
user.management.enable=true

# Optional -> SECRET, PRIVATE, default -> PRIVATE, empty -> disable auth
# SECRET mode -> bin/pulsar tokens create --secret-key file:///path/to/my-secret.key --subject test-user
Expand Down

0 comments on commit 27e2f28

Please sign in to comment.