mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
feat(console): support accessing console endpoint via port 9000 (#533)
* fix(main): update dns_init startup logic and remove unused code in http.rs - Refactored the DNS resolver initialization logic in `main.rs` for improved startup reliability and error handling. - Removed unused code from `http.rs` to keep the codebase clean and maintainable. * feat(console): support accessing console endpoint via port 9000 - Added compatibility to allow console access through port 9000. - Improved endpoint detection and routing for console service on standard and custom ports. - Enhanced user experience for environments using port 9000 as the default access point.
This commit is contained in:
@@ -198,7 +198,7 @@ pub async fn start_http_server(
|
||||
b.set_auth(IAMAuth::new(access_key, secret_key));
|
||||
b.set_access(store.clone());
|
||||
// When console runs on separate port, disable console routes on main endpoint
|
||||
let console_on_endpoint = false; // Console will run separately
|
||||
let console_on_endpoint = opt.console_enable; // Console will run separately
|
||||
b.set_route(admin::make_admin_route(console_on_endpoint)?);
|
||||
|
||||
if !opt.server_domains.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user