mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 09:38:23 +02:00
Merge pull request #4177 from appolloford/master
Fix APIs for preview and log in reverse proxy
This commit is contained in:
@@ -78,7 +78,7 @@ async function logMonitor() {
|
||||
for (const line of lines) addLogLine(line);
|
||||
if (!logConnected) {
|
||||
logConnected = true;
|
||||
xhrPost('/sdapi/v1/log', { debug: 'connected' });
|
||||
xhrPost(`${window.api}/sdapi/v1/log`, { debug: 'connected' });
|
||||
}
|
||||
} else {
|
||||
logConnected = false;
|
||||
|
||||
@@ -179,7 +179,7 @@ class ExtraNetworksPage:
|
||||
def link_preview(self, filename):
|
||||
quoted_filename = urllib.parse.quote(filename.replace('\\', '/'))
|
||||
mtime = os.path.getmtime(filename) if os.path.exists(filename) else 0
|
||||
preview = f"/sdapi/v1/network/thumb?filename={quoted_filename}&mtime={mtime}"
|
||||
preview = f"{shared.opts.subpath}/sdapi/v1/network/thumb?filename={quoted_filename}&mtime={mtime}"
|
||||
return preview
|
||||
|
||||
def create_thumb(self):
|
||||
|
||||
Reference in New Issue
Block a user