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
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
@@ -7,7 +8,7 @@ data:
|
|||||||
nginx.conf: |
|
nginx.conf: |
|
||||||
user nginx;
|
user nginx;
|
||||||
worker_processes 1;
|
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;
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
@@ -15,7 +16,7 @@ data:
|
|||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include /etc/nginx/mime.types; # Use standard MIME types
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@@ -28,19 +29,14 @@ data:
|
|||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- CORRECTED BLOCK FOR FILE DOWNLOADS ---
|
|
||||||
location /clients/ {
|
location /clients/ {
|
||||||
# Path on the server where your files are stored
|
|
||||||
alias /mc/clients/;
|
alias /mc/clients/;
|
||||||
|
|
||||||
# Enable efficient file transfer
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
||||||
# Tell the browser to download the file instead of opening it
|
|
||||||
add_header Content-Disposition "attachment";
|
add_header Content-Disposition "attachment";
|
||||||
|
|
||||||
# (Optional) Show a file listing if a directory is requested
|
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
|
||||||
|
gzip off;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user