[英]How to increase maximum HTTP header size for Java Spring Boot app hosted in Azure App Service (deployed as .WAR)?
We have a Java Spring Boot application hosted in an Azure App Service (Windows), and we need to increase the value of maxHttpHeaderSize
on the Tomcat 9 server to probably around 32KB. We have a Java Spring Boot application hosted in an Azure App Service (Windows), and we need to increase the value of
maxHttpHeaderSize
on the Tomcat 9 server to probably around 32KB. I can't work out how we can influence the server settings to do this.我无法弄清楚我们如何影响服务器设置来做到这一点。
How can I override the maxHttpHeaderSize
value for the Tomcat server in the Azure App Service?如何覆盖 Azure 应用服务中 Tomcat 服务器的
maxHttpHeaderSize
值?
Here are the "Stack settings" from the "Configuration" page for the App Service:以下是应用服务“配置”页面中的“堆栈设置”:
We currently deploy the app via a DevOps pipeline that uploads a .WAR
.我们目前通过上传
.WAR
的 DevOps 管道部署应用程序。
The reason that we need to increase the maximum header size is that we integrate with Azure AD for authentication, and it's adding large headers (due to quite a large number of user groups we think) which are tipping requests over the current limit for some users.我们需要增加最大 header 大小的原因是我们与 Azure AD 集成以进行身份验证,并且它添加了大标头(由于我们认为相当大量的用户组),这使某些用户的请求超过了当前限制.
Any guidance is much appreciated.非常感谢任何指导。 Thank you!
谢谢!
example, application.properties
例如,
application.properties
server.max-http-header-size=10KB
Reference document https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#:~:text=server.max%2Dhttp%2Dheader%2Dsize参考文档https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#:~:text=server.max%2Dhttp%2Dheader%2Dsize
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.