From 776a93bb4f34b32eafdcc26564cb013232036fc5 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Jul 2026 14:04:58 +0000 Subject: [PATCH] fix(nginx plugin): place mime.types next to nginx.conf so include resolves The nginx plugin created mime.types in the Virtenv directory ({{ .Virtenv }}/mime.types), but nginx.conf lives in the DevboxDir and uses a relative "include mime.types;" directive. nginx resolves config-time include paths relative to the config file, not the -p prefix path, so the service failed to start with: [emerg] open() ".../devbox.d/nginx/mime.types" failed (2: No such file or directory) in .../devbox.d/nginx/nginx.conf Place mime.types in the DevboxDir alongside nginx.conf (matching how fastcgi.conf is already handled) and bump the plugin version. Fixes #2908 Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_013yJQ9FtijMB9SfnTeRVC1P --- plugins/nginx.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nginx.json b/plugins/nginx.json index 37dcd875757..3f627fb30ea 100644 --- a/plugins/nginx.json +++ b/plugins/nginx.json @@ -1,6 +1,6 @@ { "name": "nginx", - "version": "0.0.5", + "version": "0.0.6", "description": "nginx can be configured with env variables\n\nTo customize:\n* Use $NGINX_CONFDIR to change the configuration directory\n* Use $NGINX_TMPDIR to change the tmp directory. Use $NGINX_USER to change the user\n* Use $NGINX_WEB_PORT to change the port NGINX runs on. \n Note: This plugin uses envsubst when running `devbox services` to generate the nginx.conf file from the nginx.template file. To customize the nginx.conf file, edit the nginx.template file.\n", "packages": ["gettext@latest", "gawk@latest"], "env": { @@ -14,7 +14,7 @@ }, "create_files": { "{{ .Virtenv }}/temp": "", - "{{ .Virtenv }}/mime.types": "nginx/mime.types", + "{{ .DevboxDir }}/mime.types": "nginx/mime.types", "{{ .Virtenv }}/process-compose.yaml": "nginx/process-compose.yaml", "{{ .DevboxDir }}/nginx.template": "nginx/nginx.template", "{{ .DevboxDir }}/nginx.conf": "nginx/nginx.conf",