mirror of
https://github.com/penpot/penpot.git
synced 2026-08-05 12:29:00 +00:00
🐛 Fix problem with shadow-cljs websocket connection
This commit is contained in:
parent
c2e1c01d17
commit
495535eb37
@ -136,6 +136,13 @@ http {
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /api/remote-relay {
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_pass http://127.0.0.1:3448;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
location /mcp/ws {
|
location /mcp/ws {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
proxy_set_header Connection 'upgrade';
|
||||||
|
|||||||
@ -10,7 +10,8 @@
|
|||||||
:output-dir "resources/public/js/"
|
:output-dir "resources/public/js/"
|
||||||
:asset-path "/js"
|
:asset-path "/js"
|
||||||
:devtools {:watch-dir "resources/public"
|
:devtools {:watch-dir "resources/public"
|
||||||
:reload-strategy :full}
|
:reload-strategy :full
|
||||||
|
:server-url #shadow/env ["SHADOW_SERVER_URL" :default ""]}
|
||||||
:build-options {:manifest-name "manifest.json"}
|
:build-options {:manifest-name "manifest.json"}
|
||||||
:modules
|
:modules
|
||||||
{:shared
|
{:shared
|
||||||
@ -86,7 +87,8 @@
|
|||||||
{:target :browser
|
{:target :browser
|
||||||
:output-dir "resources/public/js/worker/"
|
:output-dir "resources/public/js/worker/"
|
||||||
:asset-path "/js/worker"
|
:asset-path "/js/worker"
|
||||||
:devtools {:browser-inject :main
|
:devtools {:server-url #shadow/env ["SHADOW_SERVER_URL" :default ""]
|
||||||
|
:browser-inject :main
|
||||||
:watch-dir "resources/public"
|
:watch-dir "resources/public"
|
||||||
:reload-strategy :full}
|
:reload-strategy :full}
|
||||||
:build-options {:manifest-name "manifest.json"}
|
:build-options {:manifest-name "manifest.json"}
|
||||||
|
|||||||
@ -331,6 +331,10 @@ SERENA_DASHBOARD_EXTERNAL_PORT=${serena_dash}
|
|||||||
# to a single Valkey Pub/Sub. See mem:devenv/core.
|
# to a single Valkey Pub/Sub. See mem:devenv/core.
|
||||||
PENPOT_BACKEND_WORKER=false
|
PENPOT_BACKEND_WORKER=false
|
||||||
|
|
||||||
|
# shadow-cljs relay proxied through nginx so the browser can reach it without
|
||||||
|
# a separate published port. URL must match the instance's public HTTPS port.
|
||||||
|
SHADOW_SERVER_URL=wss://localhost:${public}
|
||||||
|
|
||||||
# Workspace bind mount (computed in manage.sh too, but recorded here for
|
# Workspace bind mount (computed in manage.sh too, but recorded here for
|
||||||
# clarity when inspecting the env file).
|
# clarity when inspecting the env file).
|
||||||
PENPOT_SOURCE_PATH=${workspace}
|
PENPOT_SOURCE_PATH=${workspace}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user