Fix nginx configuration for read-only filesystem
This commit is contained in:
@@ -18,8 +18,8 @@ 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
|
||||||
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \
|
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats /tmp/nginx_client_body \
|
||||||
&& chown -R cloudron:cloudron /tmp/data
|
&& chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body
|
||||||
|
|
||||||
# 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,11 +1,12 @@
|
|||||||
|
client_body_temp_path /tmp/nginx_client_body;
|
||||||
|
client_max_body_size 100m;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 5080 default_server;
|
listen 5080 default_server;
|
||||||
listen [::]:5080 default_server;
|
listen [::]:5080 default_server;
|
||||||
|
|
||||||
root /app/code;
|
root /app/code;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
client_max_body_size 100m;
|
|
||||||
client_body_timeout 600s;
|
client_body_timeout 600s;
|
||||||
client_header_timeout 600s;
|
client_header_timeout 600s;
|
||||||
proxy_connect_timeout 600s;
|
proxy_connect_timeout 600s;
|
||||||
|
Reference in New Issue
Block a user