Skip to content

Endpoint port can load console page #720

@Creayhhh

Description

@Creayhhh

Describe the bug
I want to keep the API port (9000) and console port (9001) separate from each other,but when I access port 9000, it can be load console page
我想让API端口和控制台端口相互分离,但是当我访问9000端口,它能直接访问到控制台页面
it is a bug? if not, how should I modify my configuration file?
这是一个bug吗?如果不是bug,我应该如何修改我的配置文件?

To Reproduce
I use docker compose to deploy RustFS
我使用docker compose来部署RustFS

version: '3.8'
services:
 rustfs:
   image: rustfs/rustfs:latest
   container_name: rustfs
   ports:
     - "9000:9000" # API 端口
     - "9001:9001" # 控制台端口
   volumes:
     - ./data:/data # 数据存储路径
   environment:
     - RUSTFS_ACCESS_KEY=xxxx # 管理员用户名
     - RUSTFS_SECRET_KEY=xxxx # 管理员密码
     - RUSTFS_ADDRESS=:9000 # 服务绑定地址
     - RUSTFS_EXTERNAL_ADDRESS=:9000 # 指定控制台访问端点的实际主机端口
     - RUSTFS_CONSOLE_ADDRESS=:9001 # 控制台绑定地址
     - RUSTFS_CONSOLE_ENABLE=true # 启用控制台
     - RUSTFS_LOG=warn # 日志级别
   restart: unless-stopped
volumes:
 rustfs-data:
   name: rustfs-data

Screenshots

Image Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions