Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
ce0aab36
Commit
ce0aab36
authored
Jul 25, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #11984 from AUTOMATIC1111/api-only-subpath-(root_path)
api only subpath (rootpath)
parent
c251e8db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/api/api.py
modules/api/api.py
+2
-2
webui.py
webui.py
+1
-1
No files found.
modules/api/api.py
View file @
ce0aab36
...
...
@@ -724,9 +724,9 @@ class Api:
cuda
=
{
'error'
:
f
'{err}'
}
return
models
.
MemoryResponse
(
ram
=
ram
,
cuda
=
cuda
)
def
launch
(
self
,
server_name
,
port
):
def
launch
(
self
,
server_name
,
port
,
root_path
):
self
.
app
.
include_router
(
self
.
router
)
uvicorn
.
run
(
self
.
app
,
host
=
server_name
,
port
=
port
,
timeout_keep_alive
=
shared
.
cmd_opts
.
timeout_keep_alive
)
uvicorn
.
run
(
self
.
app
,
host
=
server_name
,
port
=
port
,
timeout_keep_alive
=
shared
.
cmd_opts
.
timeout_keep_alive
,
root_path
=
root_path
)
def
kill_webui
(
self
):
restart
.
stop_program
()
...
...
webui.py
View file @
ce0aab36
...
...
@@ -374,7 +374,7 @@ def api_only():
api
.
launch
(
server_name
=
"0.0.0.0"
if
cmd_opts
.
listen
else
"127.0.0.1"
,
port
=
cmd_opts
.
port
if
cmd_opts
.
port
else
7861
,
root_path
=
f
"/{cmd_opts.subpath}
"
root_path
=
f
"/{cmd_opts.subpath}"
if
cmd_opts
.
subpath
else
"
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment