Conversation
|
Regarding the use of the maven-replacer-plugin, it looks like a very indirect way of configuring our Jetty, which can be confusing to people reading the code. Can we just define these configuration properties directly in the src files? |
|
Regarding the actual change, this does fix the http -> https redirect in my testing. |
|
@meltsufin this was discussed a bit by @janbartel and myself. It would perhaps be clearer to just have the The other option we discussed was to find a plugin or technique that at least had the replacements in a file held within src rather than in the Actually, I have an idea of how we might be able to change the jetty release a little bit to support a file that would contain both the What I'm thinking is that in the pom we just run a command like: the referenced file would then be full of lines like: Each line would be run as a jetty This keeps the jetty configuration in a single file, out of the pom.xml, yet protects against future releases changing modules. We can even warn if the properties are no longer known! thoughts? Dang, looks like we will need another 9.4.0 RC which will push the release back a week, but could be worth it. |
|
How about just a |
|
@joakime I like the idea of saving the props on the command line, but I don't really think its feasible to try and find out which .ini file they belong in: I think they'd have to be all put into a single.ini file that is always applied last called eg "override.ini" or something. |
|
@joakime what I'm proposing is to essentially have a But furthermore, the proposal for a I see both features as separable, but both would be good to improve the configuration of jetty-bases in situations like we have here in jetty-runtime. I'll experiment later today and confirm if they are viable. @meltsufin I'll update this PR to the latest. You can either approve now as correct behaviour or wait for the feature that will allow better separation of the configuration. |
Fixes #76.
This PR sets the securePort to 443 so that redirects can work when a non https request is received on a resource with a CONFIDENTIAL security constraint.
NB the technique of replacing jetty properties in .ini files using the maven-replacer-plugin is something that we can make more use of to customize the basic jetty distro for flex and eventually compat.