Update k8s/games/minecraft/deployments.yaml
All checks were successful
Check with kubeconform / lint (push) Successful in 11s
All checks were successful
Check with kubeconform / lint (push) Successful in 11s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -7,7 +8,7 @@ data:
|
||||
nginx.conf: |
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
error_log /var/log/nginx/error.log warn; # Added for easier debugging
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
@@ -15,7 +16,7 @@ data:
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types; # Use standard MIME types
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
server {
|
||||
@@ -28,19 +29,14 @@ data:
|
||||
sub_filter_once off;
|
||||
}
|
||||
|
||||
# --- CORRECTED BLOCK FOR FILE DOWNLOADS ---
|
||||
location /clients/ {
|
||||
# Path on the server where your files are stored
|
||||
alias /mc/clients/;
|
||||
|
||||
# Enable efficient file transfer
|
||||
sendfile on;
|
||||
|
||||
# Tell the browser to download the file instead of opening it
|
||||
add_header Content-Disposition "attachment";
|
||||
|
||||
# (Optional) Show a file listing if a directory is requested
|
||||
autoindex on;
|
||||
|
||||
gzip off;
|
||||
chunked_transfer_encoding off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user