You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following valid nginx config is mistakenly marked as illegal by the Agent:
server {
listen 80 default_server;
server_name localhost;
location / {
if ($request_method = 'OPTIONS')
{
include conf.d/some_file;
return 204;
}
root /usr/share/nginx/html;
index index.html index.htm;
}
}
The agent fails to write the configuration with:
time="2023-10-17T08:47:26Z" level=info msg="Updating NGINX config"
time="2023-10-17T08:47:26Z" level=info msg="Attempting to run command: /usr/sbin/nginx with args -t -c /etc/nginx/nginx.conf"
time="2023-10-17T08:47:26Z" level=info msg="Config validated:\nnginx: the configuration file /etc/nginx/nginx.conf syntax is ok\nnginx: configuration file /etc/nginx/nginx.conf test is successful\n"
time="2023-10-17T08:47:26Z" level=error msg="Config apply failed (write): error running nginx -t -c /etc/nginx/nginx.conf:\n error reading config from /etc/nginx/nginx.conf, error: \"include\" directive is not allowed here in /etc/nginx/conf.d/default.conf:11"
This is caused by a bug in nginx-go-crossplane (see nginxinc/nginx-go-crossplane#72). Once we have a new nginx-go-crossplane version, Agent will have to point to that one to solve this validation issue.
The text was updated successfully, but these errors were encountered:
@oliveromahony, apologies that I wasn't clear. The latest crossplane version (0.4.32) is still affected by the issue. I have submitted a PR with the fix. Once it's merged and a new crossplane version is bumped, we'll have to change it here.
The following valid nginx config is mistakenly marked as illegal by the Agent:
The agent fails to write the configuration with:
This is caused by a bug in
nginx-go-crossplane
(see nginxinc/nginx-go-crossplane#72). Once we have a newnginx-go-crossplane
version, Agent will have to point to that one to solve this validation issue.The text was updated successfully, but these errors were encountered: