diff --git a/k8s/games/minecraft/deployments.yaml b/k8s/games/minecraft/deployments.yaml index 2676511..f2776b1 100644 --- a/k8s/games/minecraft/deployments.yaml +++ b/k8s/games/minecraft/deployments.yaml @@ -22,16 +22,19 @@ data: sub_filter_once off; } location /clients/ { - types { } - sendfile on; + location ~* \.zip$ { + add_header Content-Type application/zip; + add_header Content-Disposition "attachment"; + } + sendfile on; tcp_nopush on; - tcp_nodelay on; + tcp_nodelay on; keepalive_timeout 65; sendfile_max_chunk 1m; - default_type application/zip; - add_header Content-Disposition "attachment"; alias /mc/clients/; autoindex on; + add_header Accept-Ranges bytes; + add_header Cache-Control "public, max-age=3600"; } } }