mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
added parameter and doc
This commit is contained in:
parent
acf1cbde2c
commit
430b92d388
4 changed files with 26 additions and 2 deletions
|
|
@ -485,6 +485,14 @@
|
|||
</property>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<property>
|
||||
<name>zeppelin.server.send.jetty.name</name>
|
||||
<value>true</value>
|
||||
<description>If set to true, will not show the Jetty version to prevent Fingerprinting</description>
|
||||
</property>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<property>
|
||||
<name>zeppelin.server.jetty.request.header.size</name>
|
||||
|
|
|
|||
|
|
@ -121,4 +121,15 @@ The following property needs to be updated in the zeppelin-site.xml in order to
|
|||
</property>
|
||||
```
|
||||
|
||||
The value can be any "String".
|
||||
The value can be any "String".
|
||||
|
||||
Also, it can be removed the from response headers and from 300/400/500 HTTP response pages.
|
||||
|
||||
|
||||
```xml
|
||||
<property>
|
||||
<name>zeppelin.server.send.jetty.name</name>
|
||||
<value>false</value>
|
||||
<description>If set to true, will not show the Jetty version to prevent Fingerprinting</description>
|
||||
</property>
|
||||
```
|
||||
|
|
@ -618,6 +618,10 @@ public class ZeppelinConfiguration extends XMLConfiguration {
|
|||
return getString(ConfVars.ZEPPELIN_SERVER_JETTY_NAME);
|
||||
}
|
||||
|
||||
public boolean sendJettyName() {
|
||||
return getBoolean(ConfVars.ZEPPELIN_SERVER_SEND_JETTY_NAME);
|
||||
}
|
||||
|
||||
public Integer getJettyRequestHeaderSize() {
|
||||
return getInt(ConfVars.ZEPPELIN_SERVER_JETTY_REQUEST_HEADER_SIZE);
|
||||
}
|
||||
|
|
@ -887,6 +891,7 @@ public class ZeppelinConfiguration extends XMLConfiguration {
|
|||
ZEPPELIN_SERVER_DEFAULT_DIR_ALLOWED("zeppelin.server.default.dir.allowed", false),
|
||||
ZEPPELIN_SERVER_XFRAME_OPTIONS("zeppelin.server.xframe.options", "SAMEORIGIN"),
|
||||
ZEPPELIN_SERVER_JETTY_NAME("zeppelin.server.jetty.name", null),
|
||||
ZEPPELIN_SERVER_SEND_JETTY_NAME("zeppelin.server.send.jetty.name", true),
|
||||
ZEPPELIN_SERVER_JETTY_THREAD_POOL_MAX("zeppelin.server.jetty.thread.pool.max", 400),
|
||||
ZEPPELIN_SERVER_JETTY_THREAD_POOL_MIN("zeppelin.server.jetty.thread.pool.min", 8),
|
||||
ZEPPELIN_SERVER_JETTY_THREAD_POOL_TIMEOUT("zeppelin.server.jetty.thread.pool.timeout", 30),
|
||||
|
|
|
|||
|
|
@ -297,13 +297,13 @@ public class ZeppelinServer extends ResourceConfig {
|
|||
ServerConnector connector;
|
||||
HttpConfiguration httpConfig = new HttpConfiguration();
|
||||
httpConfig.addCustomizer(new ForwardedRequestCustomizer());
|
||||
httpConfig.setSendServerVersion(conf.sendJettyName());
|
||||
if (conf.useSsl()) {
|
||||
LOG.debug("Enabling SSL for Zeppelin Server on port " + sslPort);
|
||||
httpConfig.setSecureScheme("https");
|
||||
httpConfig.setSecurePort(sslPort);
|
||||
httpConfig.setOutputBufferSize(32768);
|
||||
httpConfig.setResponseHeaderSize(8192);
|
||||
httpConfig.setSendServerVersion(true);
|
||||
|
||||
HttpConfiguration httpsConfig = new HttpConfiguration(httpConfig);
|
||||
SecureRequestCustomizer src = new SecureRequestCustomizer();
|
||||
|
|
|
|||
Loading…
Reference in a new issue