From b3a5e6710ff89d9ac65d1633ee65ddb44de0a173 Mon Sep 17 00:00:00 2001 From: Yamila Moreno Date: Wed, 22 Jan 2025 12:21:13 +0100 Subject: [PATCH 1/2] :whale: improve docs about custom configuration --- docs/technical-guide/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/technical-guide/configuration.md b/docs/technical-guide/configuration.md index 4316afb12..81c25b97b 100644 --- a/docs/technical-guide/configuration.md +++ b/docs/technical-guide/configuration.md @@ -424,8 +424,8 @@ To connect the frontend to the exporter and backend, you need to fill out these ```bash # Frontend -PENPOT_BACKEND_URI: http://your-penpot-backend -PENPOT_EXPORTER_URI: http://your-penpot-exporter +PENPOT_BACKEND_URI: http://your-penpot-backend:6060 +PENPOT_EXPORTER_URI: http://your-penpot-exporter:6061 ``` These variables are used for generate correct nginx.conf file on container startup. From 31bc7e7c867f53e5ea332cb5961c60fa9de14af4 Mon Sep 17 00:00:00 2001 From: Yamila Moreno Date: Wed, 22 Jan 2025 12:46:52 +0100 Subject: [PATCH 2/2] :whale: add advice for unsecure configuration --- docs/technical-guide/configuration.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/technical-guide/configuration.md b/docs/technical-guide/configuration.md index 81c25b97b..568dce922 100644 --- a/docs/technical-guide/configuration.md +++ b/docs/technical-guide/configuration.md @@ -405,6 +405,14 @@ where users will access the application: PENPOT_PUBLIC_URI: http://localhost:9001 ``` +

+ If you plan to serve Penpot under different domain than `localhost` without HTTPS, + you need to disable the `secure` flag on cookies, with the `disable-secure-session-cookies` flag. + This is a configuration NOT recommended for production environments. +

+ +Check all the [flags](#other-flags) to fully customize your instance. + ## Frontend ## In comparison with backend, frontend only has a small number of runtime configuration @@ -480,3 +488,4 @@ __Since version 2.0.0__ [2]: /technical-guide/getting-started#configure-penpot-with-docker [3]: /technical-guide/developer/common#dev-environment [4]: https://github.com/penpot/penpot/blob/main/docker/images/files/nginx.conf +