feat: ComfyUI ?????? https://domain:port ????? - #119
Open
lonrencn wants to merge 1 commit into
Open
Conversation
原实现强制剥离 http(s):// 前缀且所有请求硬编码 http://,无法连接远程加密后端。
新增 comfy_base_url() 辅助函数:完整地址(含协议)直连不额外拼接,无协议的 host:port 默认 http://(老用户逻辑完全不变)。
改动覆盖后端 13 处 ComfyUI 请求拼接与保存校验,并更新前端提示文案。
- main.py: 新增 comfy_base_url();save_comfyui_instances 保留 scheme;13 处 http://{addr} 改用 comfy_base_url(addr)
- static/comfyui-settings.html: 提示补充 https://domain:port 用法
- static/js/comfyui-settings.js: placeholder 同步更新
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
??
?? ComfyUI ????????? host:port ??(? 127.0.0.1:8188),??????? http(s):// ??,??? 13 ? ComfyUI ?????? http://{addr},??????????(?????????? https://domain:8188)?
??
??
comfy_base_url(addr)????:http://,??????????? main.py
comfy_base_url()????save_comfyui_instances??????http(s)://??(????),?????????f"http://{addr}/..."????f"{comfy_base_url(addr)}/..."??
static/comfyui-settings.html:??????https://domain:port??static/js/comfyui-settings.js:input placeholder ???????
host:port????????(??? http)??
python -c "import ast; ast.parse(...)"??????comfy_base_url??????(http ?? / https ?? / ??????)PUT /api/comfyui/instances??https://example.com:8443????????;??????????? 400