Skip to content

[Feature] Some feature suggestions #3174

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

Closed
vzrs opened this issue May 30, 2025 · 3 comments
Closed

[Feature] Some feature suggestions #3174

vzrs opened this issue May 30, 2025 · 3 comments
Assignees

Comments

@vzrs
Copy link

vzrs commented May 30, 2025

MaxKB Version

v1.10.8

Please describe your needs or suggestions for improvements

1、鉴于使用Nginx代理具体url路径时,会出现index-.js和index-.css加载失败的问题,虽已得到管理员回复表示“目前不支持二级路由,不能代理到具体的某一个路径”,但这对于安全级别比较高的场景来说,能够控制后台页面不被访问。或者加入后台访问白名单功能。
2、模型添加成功后,编辑页面中API Key的可见按钮,点击后内容仍然存在*号。

Please describe the solution you suggest

No response

Additional Information

No response

@shaohuzhang1 shaohuzhang1 changed the title [Feature] 一些功能建议 [Feature] Some feature suggestions May 30, 2025
@liqiang-fit2cloud
Copy link
Member

控制后台访问参考这段nginx配置
`

    server {
        listen 443 ssl;
        http2 on;
        ssl_certificate ***.crt;
        ssl_certificate_key ***.key;
        server_name  mk-console.demo.com;
        proxy_read_timeout 300s;
        proxy_send_timeout 300s;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $server_name;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_redirect http:// $scheme://;
        expires 0;
        allow 白名单IP;
        deny all;
        location / {
            proxy_pass http://1.2.3.4:5678;
        }
    }
    limit_req_zone $binary_remote_addr$uri$http_user_agent zone=maxkb_req_limit:20m rate=30r/m;
    server {
        listen 443 ssl;
        http2 on;
        ssl_certificate ***.crt;
        ssl_certificate_key ***.key;
        server_name  mk.demo.com;
        proxy_connect_timeout 300s;
        proxy_read_timeout 300s;
        proxy_send_timeout 300s;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $server_name;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_redirect http:// $scheme://;
        expires 0;
        if ($http_user_agent ~* "curl|wget|scan|spider") {
            return 403;
        }
        location = / {
            return 403;
        }
        location = /ui/login {
            return 403;
        }
        if ($http_referer ~* (/ui/login)) {
            return 403;
        }
        location / {
            limit_req zone=maxkb_req_limit burst=5;
            proxy_pass http://1.2.3.4:5678;
        }
    }

`

@baixin513
Copy link
Contributor

感谢反馈,关于第二个模型的API Key是加密过的,暂无计划支持显示明文。

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for feedback, the API Key for the second model is encrypted and there is no plan to support the display of plaintext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants