From 97435d438b548af3c4c84b9d92ad697d343fdaf6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 13 Nov 2025 21:13:06 -0600 Subject: [PATCH] Use /run temp paths for nginx --- maubot-src/nginx.conf | 5 +++++ maubot-src/start.sh | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/maubot-src/nginx.conf b/maubot-src/nginx.conf index 7765d7a..26750f5 100644 --- a/maubot-src/nginx.conf +++ b/maubot-src/nginx.conf @@ -8,6 +8,11 @@ events { http { include /etc/nginx/mime.types; default_type application/octet-stream; + client_body_temp_path /run/nginx/client_body; + proxy_temp_path /run/nginx/proxy_temp; + fastcgi_temp_path /run/nginx/fastcgi_temp; + uwsgi_temp_path /run/nginx/uwsgi_temp; + scgi_temp_path /run/nginx/scgi_temp; sendfile on; tcp_nopush on; tcp_nodelay on; diff --git a/maubot-src/start.sh b/maubot-src/start.sh index 9636c57..2077fed 100755 --- a/maubot-src/start.sh +++ b/maubot-src/start.sh @@ -11,7 +11,11 @@ MAUBOT_INTERNAL_PORT="${MAUBOT_INTERNAL_PORT:-3001}" umask 0027 -mkdir -p /run/nginx \ +mkdir -p /run/nginx/client_body \ + /run/nginx/proxy_temp \ + /run/nginx/fastcgi_temp \ + /run/nginx/uwsgi_temp \ + /run/nginx/scgi_temp \ "${DATA_DIR}" \ "${DATA_DIR}/plugins" \ "${DATA_DIR}/trash" \