Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/openconcho/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ securityContext:
# Directories mounted as ephemeral tmpfs (in-memory) to satisfy nginx's write requirements
# when the root filesystem is read-only. Add entries for any additional writable paths.
tmpfsMounts:
- mountPath: /etc/nginx/conf.d
- mountPath: /var/cache/nginx
- mountPath: /var/run
- mountPath: /tmp
Expand Down
6 changes: 3 additions & 3 deletions docker/40-openconcho-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Lets one prebuilt image target any Honcho backend without a rebuild.
# OPENCONCHO_DEFAULT_HONCHO_URL — absolute URL seeding the first instance, or empty.
# OPENCONCHO_UPSTREAM_ALLOWLIST — optional comma-separated host globs (SSRF guard).
# Runs from /docker-entrypoint.d before nginx starts. Requires the html dir to
# be writable (default); skip or bind-mount config.js when running --read-only.
# Runs from /docker-entrypoint.d before nginx starts. Writes config.js to /tmp
# so the container works cleanly under a read-only root filesystem.
set -eu

cat > /usr/share/nginx/html/config.js <<EOF
cat > /tmp/openconcho-config.js <<EOF
window.__OPENCONCHO_DEFAULT_HONCHO_URL__ = "${OPENCONCHO_DEFAULT_HONCHO_URL:-}";
EOF

Expand Down
2 changes: 1 addition & 1 deletion docker/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ server {
# Runtime config — regenerated per container start, must never be cached.
location = /config.js {
add_header Cache-Control "no-cache, no-store, must-revalidate";
try_files $uri =404;
alias /tmp/openconcho-config.js;
}

# Long-cache static assets — Vite hashes filenames so they're immutable.
Expand Down