From 237a4103b2d21c8a2317c1c9285a40f6a3e4c04e Mon Sep 17 00:00:00 2001 From: Jeff Turner Date: Wed, 8 Jul 2026 23:17:11 +1000 Subject: [PATCH] fix(nginx plugin): Put mime.types where nginx.conf expects it (#2908) nginx starts with -p $NGINX_PATH_PREFIX, where -p means "set the prefix path". However this only affects the runtime path (for directives `root`, `error_log`, `access_log` etc). Relative configuration directives, like `include mime.types;`, are still resolved relative to `nginx.conf`. Therefore mime.types must go in `{{ .DevboxDir }}`, not `{{ .Virtenv }}`. Fixes #2908 --- 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",