mirror of
https://github.com/penpot/penpot.git
synced 2026-06-09 17:02:05 +00:00
🐳 Add improvements related to Docker and Podman compatibility (#10012)
* 📎 Add tests for boolean parser coverage * 🐳 Normalize boolean handling in nginx entrypoint * 🐳 Quote boolean env vars in compose example (add Podman compatibility) * 🔥 Remove deprecated and duplicated nginx.conf file for Storybook
This commit is contained in:
parent
7e66929010
commit
97c3a9facf
@ -171,3 +171,20 @@
|
||||
(t/is (= candidate-2 (encode-j expected)))))
|
||||
|
||||
|
||||
(t/deftest test-boolean
|
||||
(let [decode-s (sm/decoder ::sm/boolean sm/string-transformer)]
|
||||
(t/is (= true (decode-s "true")))
|
||||
(t/is (= true (decode-s "True")))
|
||||
(t/is (= true (decode-s "TrUe")))
|
||||
(t/is (= true (decode-s "TRUE")))
|
||||
(t/is (= false (decode-s "false")))
|
||||
(t/is (= false (decode-s "False")))
|
||||
(t/is (= false (decode-s "fAlSe")))
|
||||
(t/is (= false (decode-s "FALSE")))
|
||||
|
||||
(t/is (= true (decode-s "T")))
|
||||
(t/is (= false (decode-s "F")))
|
||||
(t/is (= true (decode-s "t")))
|
||||
(t/is (= false (decode-s "f")))
|
||||
(t/is (= true (decode-s "1")))
|
||||
(t/is (= false (decode-s "0")))))
|
||||
|
||||
@ -109,6 +109,7 @@ services:
|
||||
<< : [*penpot-flags, *penpot-http-body-size, *penpot-public-uri]
|
||||
# Set to "true" on hosts where IPv6 is disabled at kernel boot level.
|
||||
# PENPOT_DISABLE_IPV6_LISTEN: "true"
|
||||
|
||||
penpot-backend:
|
||||
image: "penpotapp/backend:${PENPOT_VERSION:-2.15}"
|
||||
restart: always
|
||||
@ -161,7 +162,7 @@ services:
|
||||
## based on real scenarios. If you want to help us, please leave it enabled. You can
|
||||
## audit what data we send with the code available on github.
|
||||
|
||||
PENPOT_TELEMETRY_ENABLED: true
|
||||
PENPOT_TELEMETRY_ENABLED: "true"
|
||||
PENPOT_TELEMETRY_REFERER: compose
|
||||
|
||||
## Example SMTP/Email configuration. By default, emails are sent to the mailcatch
|
||||
@ -175,8 +176,8 @@ services:
|
||||
PENPOT_SMTP_PORT: 1025
|
||||
PENPOT_SMTP_USERNAME:
|
||||
PENPOT_SMTP_PASSWORD:
|
||||
PENPOT_SMTP_TLS: false
|
||||
PENPOT_SMTP_SSL: false
|
||||
PENPOT_SMTP_TLS: "false"
|
||||
PENPOT_SMTP_SSL: "false"
|
||||
|
||||
penpot-mcp:
|
||||
image: "penpotapp/mcp:${PENPOT_VERSION:-2.15}"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
is_truthy() {
|
||||
local value="${1,,}"
|
||||
[[ "$value" == "true" || "$value" == "t" || "$value" == "1" ]]
|
||||
}
|
||||
|
||||
is_falsy() {
|
||||
local value="${1,,}"
|
||||
[[ "$value" == "false" || "$value" == "f" || "$value" == "0" ]]
|
||||
}
|
||||
|
||||
|
||||
#########################################
|
||||
## Air Gapped config
|
||||
#########################################
|
||||
@ -45,7 +56,7 @@ export PENPOT_EXPORTER_URI=${PENPOT_EXPORTER_URI:-http://penpot-exporter:6061}
|
||||
export PENPOT_NITRATE_URI=${PENPOT_NITRATE_URI:-http://penpot-nitrate:3000}
|
||||
export PENPOT_HTTP_SERVER_MAX_BODY_SIZE=${PENPOT_HTTP_SERVER_MAX_BODY_SIZE:-367001600} # Default to 350MiB
|
||||
export PENPOT_IPV6_LISTEN_DIRECTIVE=${PENPOT_IPV6_LISTEN_DIRECTIVE:-"listen [::]:8080 default_server reuseport backlog=16384;"}
|
||||
if [ "${PENPOT_DISABLE_IPV6_LISTEN}" = "true" ]; then
|
||||
if is_truthy "${PENPOT_DISABLE_IPV6_LISTEN:-}"; then
|
||||
export PENPOT_IPV6_LISTEN_DIRECTIVE=""
|
||||
fi
|
||||
envsubst "\$PENPOT_BACKEND_URI,\$PENPOT_EXPORTER_URI,\$PENPOT_NITRATE_URI,\$PENPOT_HTTP_SERVER_MAX_BODY_SIZE,\$PENPOT_IPV6_LISTEN_DIRECTIVE" \
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
server {
|
||||
listen 8080 default_server;
|
||||
server_name _;
|
||||
|
||||
charset utf-8;
|
||||
etag off;
|
||||
|
||||
gzip on;
|
||||
gzip_static on;
|
||||
gzip_types text/plain text/css application/javascript application/json application/vnd.api+json application/xml application/x-javascript text/xml image/svg+xml;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_min_length 256;
|
||||
gzip_vary on;
|
||||
|
||||
error_log /dev/stderr;
|
||||
access_log /dev/stdout;
|
||||
|
||||
root /var/www;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user