You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deployed penpot on my internal network via docker-compose, using an Nginx reverse proxy and using a self-signed certificate to enable HTTPS. The basics of access, login and so on worked fine, but when I created the document, The console prompt POST https://uix.rd.work/api/rpc/command/create-file 400 (Bad Request) error:
Environment and Configuration
Docker Compose
./docker-compose.yaml
---
version: "3.5"services:
frontend:
image: penpotapp/frontend:latestcontainer_name: penpot-frontendrestart: alwaysenv_file: ./.env.frontenddepends_on:
- backend
- exporterports:
- 9012:80labels:
- "traefik.enable=true"volumes:
- ./app/assets:/opt/data/assetsbackend:
# image: penpotapp/backend:latestbuild: ./build/backendcontainer_name: penpot-backendrestart: alwaysenv_file: ./.env.backenddepends_on:
- postgres
- redisports:
- 6060:6060volumes:
- ./app/assets:/opt/data/assetsexporter:
image: penpotapp/exporter:latestcontainer_name: penpot-exporterrestart: alwaysports:
- 6061:6061environment:
# Don't touch it; this uses internal docker network to# communicate with the frontend.
- PENPOT_PUBLIC_URI=http://frontend## Redis is used for the websockets notifications.
- PENPOT_REDIS_URI=redis://redis/0postgres:
image: postgres:15container_name: penpot-postgresrestart: alwaysstop_signal: SIGINTenvironment:
- POSTGRES_USER=penpot
- POSTGRES_DB=penpot
- POSTGRES_PASSWORD=penpot
- POSTGRES_INITDB_ARGS=--data-checksumshealthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"]interval: 10stimeout: 3sretries: 3start_period: 3svolumes:
- ./data/postgres:/var/lib/postgresql/dataredis:
image: redis:7container_name: penpot-redisrestart: alwayscommand: ["--databases", "1"]healthcheck:
test: ["CMD", "redis-cli", "ping"]interval: 10stimeout: 5sretries: 5volumes:
- ./data/redis:/data## A mailcatch service, used as temporal SMTP server. You can access via HTTP to the## port 1080 for read all emails the penpot platform has sent. Should be only used as a## temporal solution meanwhile you don't have a real SMTP provider configured.mailcatch:
image: sj26/mailcatcher:latestcontainer_name: penpot-mailcatchrestart: alwaysnetworks:
default:
external: truename: penpot
./build/backend/Dockerfile
FROM penpotapp/backend:latest
USER root
COPY kimotech-power-ca.crt /usr/local/share/ca-certificates/
# RUN update-ca-certificates# RUN keytool -import -trustcacerts -cacerts -storepass 3FvYZn7WuLHuKPoC -noprompt -alias kimotech-power-ca -file /usr/local/share/ca-certificates/kimotech-power-ca.crtRUN keytool -import -trustcacerts -keystore /opt/jdk/lib/security/cacerts -noprompt -alias kimotech-power-ca -file /usr/local/share/ca-certificates/kimotech-power-ca.crt -storepass 3FvYZn7WuLHuKPoC
USER penpot:penpot
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I deployed penpot on my internal network via docker-compose, using an Nginx reverse proxy and using a self-signed certificate to enable HTTPS. The basics of access, login and so on worked fine, but when I created the document, The console prompt
POST https://uix.rd.work/api/rpc/command/create-file 400 (Bad Request)
error:Environment and Configuration
Docker Compose
./docker-compose.yaml
./build/backend/Dockerfile
./.env.backend
./.env.frontend
Nginx
uix.rd.work-nginx.conf
Services logs
penpot-frontend
penpot-backend
Beta Was this translation helpful? Give feedback.
All reactions