Fixed paper build URL and nginx logging off.
authorLuke Hoersten <luke@hoersten.org>
Fri, 27 Mar 2026 14:56:43 -0500
changeset 253 4ca131e557dc
parent 252 7a54477702cc
child 254 3c105c4c9a39
Fixed paper build URL and nginx logging off.
apt-cacher/server/tasks/main.yaml
bin/build/defaults/main.yaml
minecraft/server/defaults/main.yaml
minecraft/server/tasks/main.yaml
nginx/files/nginx.conf
--- a/apt-cacher/server/tasks/main.yaml	Wed Mar 25 21:42:49 2026 -0500
+++ b/apt-cacher/server/tasks/main.yaml	Fri Mar 27 14:56:43 2026 -0500
@@ -18,6 +18,8 @@
     - { key: "Port", val: "{{apt_cacher_port}}" }
     - { key: "DlMaxRetries", val: "{{apt_cacher_max_dl_retries}}" }
     - { key: "DontCacheResolved", val: ".*InRelease" }
+    - { key: "ConnectProto", val: "v4" }
+
 
   notify: restart apt-cacher-ng
 
--- a/bin/build/defaults/main.yaml	Wed Mar 25 21:42:49 2026 -0500
+++ b/bin/build/defaults/main.yaml	Fri Mar 27 14:56:43 2026 -0500
@@ -1,6 +1,6 @@
 ---
 
-bin_version: "2.0.2"
+bin_version: "2.0.1"
 # https://github.com/w4/bin/releases
 bin_tar: "https://github.com/w4/bin/archive/refs/tags/v{{bin_version}}.tar.gz"
 bin_build_dir: "/tmp/bin-{{bin_version}}"
--- a/minecraft/server/defaults/main.yaml	Wed Mar 25 21:42:49 2026 -0500
+++ b/minecraft/server/defaults/main.yaml	Fri Mar 27 14:56:43 2026 -0500
@@ -10,12 +10,10 @@
 minecraft_view_distance: "10"
 minecraft_world_name: "world"
 minecraft_dir: "{{minecraft_parent_dir}}/minecraft/{{minecraft_world_name}}"
-minecraft_url: "https://api.papermc.io/v2/projects/paper/versions/{{minecraft_paper_version}}/builds/{{minecraft_paper_build}}/downloads/paper-{{minecraft_paper_version}}-{{minecraft_paper_build}}.jar"
-
 # https://papermc.io/downloads/paper
 # paper is a spigot derivative
 minecraft_paper_version: "1.21.11"
-minecraft_paper_build: "127"
+minecraft_paper_build: "69"
 
 minecreat_plugins_enabled:
   - "dynmap"
--- a/minecraft/server/tasks/main.yaml	Wed Mar 25 21:42:49 2026 -0500
+++ b/minecraft/server/tasks/main.yaml	Fri Mar 27 14:56:43 2026 -0500
@@ -17,10 +17,16 @@
     mode: "0755"
     state: "directory"
 
+- name: get minecraft download info
+  uri:
+    url: "https://api.papermc.io/v2/projects/paper/versions/{{minecraft_paper_version}}/builds/{{minecraft_paper_build}}"
+    return_content: yes
+  register: minecraft_build_info
+
 - name: download minecraft
   become: yes
   get_url:
-    url: "{{minecraft_url}}"
+    url: "https://fill-data.papermc.io/v1/objects/{{minecraft_build_info.json.downloads.application.sha256}}/paper-{{minecraft_paper_version}}-{{minecraft_paper_build}}.jar"
     dest: "{{minecraft_dir}}/server.jar"
     mode: "0755"
   notify: restart minecraft
--- a/nginx/files/nginx.conf	Wed Mar 25 21:42:49 2026 -0500
+++ b/nginx/files/nginx.conf	Fri Mar 27 14:56:43 2026 -0500
@@ -38,12 +38,7 @@
         # Logging Settings
         ##
 
-        map $uri $loggable {
-            default                     1;
-            ~*\.(css|js|ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot|webp|map)$  0;
-        }
-
-        access_log /var/log/nginx/access.log combined if=$loggable;
+        access_log off;
         error_log /var/log/nginx/error.log;
 
         ##