mirror of
https://github.com/penpot/penpot.git
synced 2026-07-29 01:16:14 +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;
|
||||
}
|
||||
|
||||
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 {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
:output-dir "resources/public/js/"
|
||||
:asset-path "/js"
|
||||
: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"}
|
||||
:modules
|
||||
{:shared
|
||||
@ -86,7 +87,8 @@
|
||||
{:target :browser
|
||||
:output-dir "resources/public/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"
|
||||
:reload-strategy :full}
|
||||
: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.
|
||||
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
|
||||
# clarity when inspecting the env file).
|
||||
PENPOT_SOURCE_PATH=${workspace}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user