mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
🔧 Point the devenv exporter at nginx and drop the old route
The worker reaches the backend through `internal-uri`, which fell back to the host-side public URI (unreachable from inside the container), so every poller turn died on `fetch failed`. The devenv now defines `PENPOT_INTERNAL_URI=http://localhost:4449`: nginx is the outermost platform layer (Caddy only emulates the external HTTPS), and no service goes outside to come back in. The stale `/api/export` location, which pointed at the deleted exporter HTTP port, goes away with it. AI-assisted-by: glm-5.3-flash
This commit is contained in:
parent
b456ca6fe0
commit
e4bf63cf89
@ -23,6 +23,13 @@ PENPOT_USER_DATA_VOLUME=penpotdev_user_data
|
||||
# database number (0 for ws0, 1 for ws1, ...) set by instance-env-overrides.
|
||||
PENPOT_HOST=devenv
|
||||
PENPOT_PUBLIC_URI=https://localhost:3449
|
||||
# In-container address of the platform edge (nginx), used to reach the
|
||||
# backend without leaving through the public URI (which is host-side and
|
||||
# unreachable from inside the container). Caddy only emulates the external
|
||||
# HTTPS layer; no service goes outside to come back in. The exporter worker
|
||||
# uses it for the management API; per-container loopback, so ws1+ overrides
|
||||
# never touch it.
|
||||
PENPOT_INTERNAL_URI=http://localhost:4449
|
||||
PENPOT_DATABASE_URI=postgresql://postgres/penpot
|
||||
PENPOT_DATABASE_USERNAME=penpot
|
||||
PENPOT_DATABASE_PASSWORD=penpot
|
||||
|
||||
@ -137,10 +137,6 @@ http {
|
||||
}
|
||||
|
||||
# On production, this is controlled by ELB
|
||||
location /api/export {
|
||||
proxy_pass http://127.0.0.1:6061;
|
||||
}
|
||||
|
||||
location /api {
|
||||
proxy_pass http://127.0.0.1:6060/api;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user