Fix all nginx temp paths for read-only filesystem
This commit is contained in:
@@ -17,9 +17,11 @@ COPY logo.png /app/code/logo.png
|
|||||||
RUN chmod +x /app/code/start.sh \
|
RUN chmod +x /app/code/start.sh \
|
||||||
&& chown -R cloudron:cloudron /app/code /app/data /tmp/data
|
&& chown -R cloudron:cloudron /app/code /app/data /tmp/data
|
||||||
|
|
||||||
# Initialize data directory structure
|
# Initialize data directory structure and nginx temp directories
|
||||||
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats /tmp/nginx_client_body \
|
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \
|
||||||
&& chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body
|
/tmp/nginx_client_body /tmp/nginx_proxy /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi \
|
||||||
|
&& chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body /tmp/nginx_proxy \
|
||||||
|
/tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||||
|
@@ -1,4 +1,10 @@
|
|||||||
|
# Nginx temp paths for read-only filesystem compatibility
|
||||||
client_body_temp_path /tmp/nginx_client_body;
|
client_body_temp_path /tmp/nginx_client_body;
|
||||||
|
proxy_temp_path /tmp/nginx_proxy;
|
||||||
|
fastcgi_temp_path /tmp/nginx_fastcgi;
|
||||||
|
uwsgi_temp_path /tmp/nginx_uwsgi;
|
||||||
|
scgi_temp_path /tmp/nginx_scgi;
|
||||||
|
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
Reference in New Issue
Block a user