diff --git a/k8s/games/minecraft/deployments.yaml b/k8s/games/minecraft/deployments.yaml index 98fbf86..5bee462 100644 --- a/k8s/games/minecraft/deployments.yaml +++ b/k8s/games/minecraft/deployments.yaml @@ -6,15 +6,17 @@ metadata: namespace: minecraft data: nginx.conf: | - user nginx; - worker_processes 1; + user nginx; + worker_processes 1; events { - worker_connections 1024; + worker_connections 1024; } http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + server { listen 80; - location / { proxy_pass http://localhost:8123; sub_filter 'Minecraft Dynamic Map' "Hexor's MC server"; @@ -22,11 +24,13 @@ data: sub_filter_once off; } location /clients/ { - alias /mc/clients/; - autoindex on; - - location ~* \.zip$ { - } + alias /mc/clients/; + autoindex on; + + location ~* \.zip$ { + add_header Content-Type application/zip; + add_header Content-Disposition "attachment"; + } } } }