如题,Jenkins前端用Nginx做了代理。

万分恼怒的是正在配置Jenkins任务,保存时确报出个"No valid crumb was included in the request"的错误,东西都没存住,杀人的心都有了。

如何修改呢?

首先,修改jenkis的启动配置,centos下是:

JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dhudson.security.csrf.requestfield=crumb"  

然后,修改Nginx配置:

...
server {  
    listen                    80;
    server_name               build.xxx.com;
    ignore_invalid_headers    off;
...
comments powered by Disqus