diff --git a/k8s/games/minecraft/deployments.yaml b/k8s/games/minecraft/deployments.yaml index ebbfc42..cfe94bd 100644 --- a/k8s/games/minecraft/deployments.yaml +++ b/k8s/games/minecraft/deployments.yaml @@ -6,39 +6,73 @@ metadata: namespace: minecraft data: nginx.conf: | - user nginx; - worker_processes 1; + user nginx; + worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { - worker_connections 1024; + worker_connections 1024; } http { - include /etc/nginx/mime.types; - default_type application/octet-stream; + 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"; + sub_filter "" '

Get Prism Launcher and client.zip for this server. Server address minecraft.hexor.cy:30565

Windows Install Script

+ +'; - sub_filter_once off; +function copyToClipboard() { + var textarea = document.getElementById("scriptCommand"); + textarea.select(); + textarea.setSelectionRange(0, 99999); + document.execCommand("copy"); + alert("Command copied to clipboard!"); +} + +window.onclick = function(event) { + var modal = document.getElementById("installModal"); + if (event.target == modal) { + closeInstallModal(); + } +} + +'; + sub_filter_once off; + } + + location /clients/ { + alias /mc/clients/; + sendfile on; + add_header Content-Disposition "attachment"; + autoindex on; + gzip off; + chunked_transfer_encoding off; + } } - - location /clients/ { - alias /mc/clients/; - sendfile on; - add_header Content-Disposition "attachment"; - autoindex on; - - gzip off; - chunked_transfer_encoding off; - } - } } ---