https://github.com/fofr/comfyui-basic-auth
A custom node that adds basic auth to ComfyUI
https://github.com/fofr/comfyui-basic-auth
Last synced: about 1 month ago
JSON representation
A custom node that adds basic auth to ComfyUI
- Host: GitHub
- URL: https://github.com/fofr/comfyui-basic-auth
- Owner: fofr
- License: apache-2.0
- Created: 2025-03-17T09:03:32.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T09:38:05.000Z (3 months ago)
- Last Synced: 2025-05-07T18:16:47.597Z (about 1 month ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI-Basic-Auth**
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
1. Navigate to your ComfyUI custom nodes folder:
```bash
cd ComfyUI/custom_nodes/
```2. Clone this repository:
```bash
git clone https://github.com/fofr/comfyui-basic-auth
```## Configuration
Set environment variables for your username and password:
```bash
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