[WIP] Support for Automatic1111 API Auth #2139
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable Auth in Automatic111 with the --api --api-auth username:password
Set the following environment variables in docker;
- "ENABLE_IMAGE_GENERATION=True"
- "AUTOMATIC1111_BASE_URL=http://invokeaiurl:7860"
- "AUTOMATIC1111_API_AUTH=username:password"
- "IMAGE_GENERATION_MODEL=model_name"
- "IMAGE_SIZE=widthxheight"
Note: Works, but if you enter Image within Admin settings it breaks, as breaks as Auth hasn't been added to the Admin Interface. Appreciate if someone can help with that.
Pull Request Checklist
Target branch: Pull requests should target the
dev
branch.DEV
Description: Briefly describe the changes in this pull request.
Session authentication added to backend\apps\images\main.py
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
No
Testing: Have you written and run sufficient tests for the changes?
Code Review: Have you self-reviewed your code and addressed any coding standard issues?
Yes, refer to current bugs
Description
Support for Automatic1111 Authentication, which is critical if you host the Automatic1111 on a different server, which likely most will want to due to GPU limitations.
Changelog Entry
Added
Breaking Changes
Additional Information