Copy yarn runtime, nginx temp dirs
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
|
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
|
||||||
"website": "https://affine.pro",
|
"website": "https://affine.pro",
|
||||||
"contactEmail": "support@affine.pro",
|
"contactEmail": "support@affine.pro",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"changelog": "Initial Cloudron packaging",
|
"changelog": "Initial Cloudron packaging",
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"minBoxVersion": "7.0.0",
|
"minBoxVersion": "7.0.0",
|
||||||
|
|||||||
@@ -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
|
# bring in the upstream runtime and packaged server artifacts
|
||||||
COPY --from=upstream /usr/local /usr/local
|
COPY --from=upstream /usr/local /usr/local
|
||||||
|
COPY --from=upstream /opt /opt
|
||||||
COPY --from=upstream /app "$APP_BUILD_DIR"
|
COPY --from=upstream /app "$APP_BUILD_DIR"
|
||||||
|
|
||||||
# configuration, launch scripts, and defaults
|
# configuration, launch scripts, and defaults
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ http {
|
|||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
types_hash_max_size 4096;
|
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" '
|
log_format cloudron '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
|||||||
1
start.sh
1
start.sh
@@ -25,6 +25,7 @@ require_env() {
|
|||||||
prepare_data_dirs() {
|
prepare_data_dirs() {
|
||||||
log "Preparing persistent directories"
|
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 "$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
|
if [ ! -f "$APP_DATA_DIR/config/config.json" ]; then
|
||||||
log "Seeding default configuration"
|
log "Seeding default configuration"
|
||||||
|
|||||||
Reference in New Issue
Block a user