comfyui-basic-auth

comfyui-basic-auth
★ 3

身份验证安全中间件轻量级
为 ComfyUI 增加 HTTP 基本认证中间件,通过环境变量配置用户名/密码,轻量易用,保护界面安全
💡 在局域网或公网前为 ComfyUI 加一层登录保护
🍴 1 Forks💻 Python🔄 2025-03-17
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8b0992d318c3
📄 README

ComfyUI Basic Auth

A simple authentication middleware for ComfyUI that adds basic HTTP authentication to protect your ComfyUI instance.

Features

  • Basic HTTP Authentication protection for ComfyUI
  • Simple username/password configuration
  • Lightweight and easy to set up
  • Compatible with all ComfyUI versions
  • Installation

  • Navigate to your ComfyUI custom nodes folder:
  • cd ComfyUI/custom_nodes/

  • Clone this repository:
  • git clone https://github.com/fofr/comfyui-basic-auth

    Configuration

    Set environment variables for your username and password:

    export COMFYUI_USERNAME=your_username
    export COMFYUI_PASSWORD=your_password

    Restart ComfyUI for the changes to take effect.

    Usage

    The authentication will automatically be active once the node is installed and configured. When accessing ComfyUI, you will be prompted for the username and password you specified in the environment variables.

    Security Note

    Basic authentication sends credentials encoded (not encrypted) in the HTTP header. While this provides a basic level of protection, it’s recommended to:

  • Use strong passwords
  • Access ComfyUI through HTTPS if exposed to the internet
  • Consider additional security measures for production environments