Fabric3 Jetty configuration

17 views
Skip to first unread message

Teemu Hiltunen

unread,
Sep 10, 2015, 2:25:31 AM9/10/15
to fabric3
Hi!

Our operations team asked how to configure Fabric3's Jetty server so that it would have this option set:
LimitRequestFieldSize 20000

I could only find options for setting HTTP port, enabling HTTPS and configuring logging in F3's systemConfig.xml. Are those only options for configuring the embedded Jetty? Or are there more options - just undocumented?


--teemu


Jim Marino

unread,
Sep 13, 2015, 6:52:43 PM9/13/15
to fabric3
Hi Teemu,

Sorry, I meant to reply to group instead of individually...Sending to the group so others can follow and participate.

I like the idea of having the option of just passing in an external configuration file. How about having an element or attribute on the the jetty section of systemConfig.xml that points to an external Jetty XML file that is placed in the server config directory? If this element is set, any Jetty configuration in systemConfig.xml is ignored. Could you file an issue in JIRA against 3.0 so we can track this?

Jim
  

---------- Forwarded message ----------
From: Teemu Hiltunen <hiltune...@gmail.com>
Date: Fri, Sep 11, 2015 at 6:56 AM
Subject: Re: Fabric3 Jetty configuration
To: Jim Marino <jim.m...@gmail.com>


Hi Jim!

Your reply came only to me and not to the group - was that intentional?

Anyways, I can look into this and create a pull request when I have done it. At the moment I do not know what other configuration properties should be supported besides that request field size limit.

It is not the best solution, I think, that Jetty parameters have to be added like this - one by one when needed - but it would be a too big change to support configuring Jetty "natively" some how in Fabric3. Like something like this: https://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Configuring_a_File_Server_with_XML


--teemu



2015-09-10 16:53 GMT+03:00 Jim Marino <jim.m...@gmail.com>:
Hi Teemu,

I thought the Jetty settings were documented but I could be wrong. The properties are defined here:


The '$systemConfig//' is an XPath expression into systemConfix.xml. The class that manages the embedded Jetty instance is here:


It looks like the parameter you require is left out. Are there others as well? If you have time, it would be great if you could submit a pull request against the 3.0 dev stream (main) with additions you think are important.

Jim
 

--
You received this message because you are subscribed to the Google Groups "fabric3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric3+u...@googlegroups.com.
To post to this group, send email to fab...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabric3/be056f99-3d09-41b0-86c7-227974a42a71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Teemu Hiltunen

unread,
Sep 14, 2015, 1:34:14 AM9/14/15
to fabric3
Hi Jim!

I created an issue in JIRA:
https://fabric3.atlassian.net/browse/FABRIC-62


--teemu

Jim Marino

unread,
Sep 15, 2015, 9:32:31 AM9/15/15
to fabric3
OK thanks Teemu, I'll enable it this week.

Jim


Reply all
Reply to author
Forward
0 new messages