From e49fd47c6d8e6ec5ab5ec757ec9eaea7de404f57 Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 12 Nov 2025 09:07:31 -0600 Subject: [PATCH] Copy yarn runtime, nginx temp dirs --- CloudronManifest.json | 2 +- Dockerfile | 1 + nginx.conf | 3 +++ start.sh | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index f51bad4..f530b25 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -5,7 +5,7 @@ "description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.", "website": "https://affine.pro", "contactEmail": "support@affine.pro", - "version": "0.1.1", + "version": "0.1.2", "changelog": "Initial Cloudron packaging", "manifestVersion": 2, "minBoxVersion": "7.0.0", diff --git a/Dockerfile b/Dockerfile index 6288e6e..a3d4e3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN mkdir -p "$APP_CODE_DIR" "$APP_DATA_DIR" "$APP_RUNTIME_DIR" "$APP_TMP_DIR" & # bring in the upstream runtime and packaged server artifacts COPY --from=upstream /usr/local /usr/local +COPY --from=upstream /opt /opt COPY --from=upstream /app "$APP_BUILD_DIR" # configuration, launch scripts, and defaults diff --git a/nginx.conf b/nginx.conf index 8d2790c..0de9eac 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,6 +14,9 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 4096; + client_body_temp_path /run/nginx/body; + proxy_temp_path /run/nginx/proxy; + fastcgi_temp_path /run/nginx/fastcgi; log_format cloudron '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' diff --git a/start.sh b/start.sh index 2050503..2a2a623 100644 --- a/start.sh +++ b/start.sh @@ -25,6 +25,7 @@ require_env() { prepare_data_dirs() { log "Preparing persistent directories" mkdir -p "$APP_DATA_DIR/config" "$APP_DATA_DIR/storage" "$APP_DATA_DIR/logs" "$APP_RUNTIME_DIR" "$APP_HOME_DIR" "$AFFINE_HOME" + mkdir -p /run/nginx/body /run/nginx/proxy /run/nginx/fastcgi if [ ! -f "$APP_DATA_DIR/config/config.json" ]; then log "Seeding default configuration"