A basic auth middleware for ComfyUI
A simple authentication middleware for ComfyUI that adds basic HTTP authentication to protect your ComfyUI instance.
cd ComfyUI/custom_nodes/
git clone https://github.com/fofr/comfyui-basic-auth
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.
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.
Basic authentication sends credentials encoded (not encrypted) in the HTTP header. While this provides a basic level of protection, it's recommended to: