new flat KV structure

This commit is contained in:
Pierre
2026-02-08 21:53:42 +01:00
parent 4c3a0df4b4
commit 79d86b62d3
20 changed files with 2335 additions and 110 deletions
+22 -23
View File
@@ -180,52 +180,51 @@ http {
}
# =========================================================================
# WebDAV endpoint for file access
# Exposes /files directory for read/write operations
# WebDAV endpoint for file access (proxied to Go for caching)
# Supports: GET (read), PUT (write), DELETE, MKCOL (mkdir), PROPFIND
# Files are cached by the Go service for faster repeated access
# =========================================================================
location /webdav/ {
alias /files/;
proxy_pass http://meta-core-api/webdav/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebDAV methods
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_access user:rw group:rw all:r;
# Enable autoindex for directory listings (alternative to PROPFIND)
autoindex on;
autoindex_format json;
# Allow creating directories automatically
create_full_put_path on;
# Disable buffering for streaming and large files
proxy_buffering off;
proxy_request_buffering off;
# No size limit for uploads (large media files)
client_max_body_size 0;
# Optimize for large file transfers
sendfile on;
tcp_nopush on;
tcp_nodelay on;
# Output buffering for large files
output_buffers 1 512k;
aio threads;
# Timeout settings for large files
proxy_read_timeout 600s;
proxy_send_timeout 600s;
# CORS headers for cross-container access
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, HEAD, PUT, DELETE, MKCOL, COPY, MOVE, PROPFIND, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Depth, Range, If-Range' always;
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Depth, Destination, Range, If-Range' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length, Content-Range, Accept-Ranges' always;
# Handle OPTIONS preflight
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, HEAD, PUT, DELETE, MKCOL, COPY, MOVE, PROPFIND, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Depth, Range, If-Range';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Depth, Destination, Range, If-Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}
}
location /webdav {
proxy_pass http://meta-core-api/webdav;
proxy_http_version 1.1;
proxy_set_header Host $host;
}
}
}