Issue #1087 - add module for a .well-known handler
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
2426b34a51
commit
6a3abd9770
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
|
||||
|
||||
<Configure id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection">
|
||||
<New id="WellKnownHandler" class="org.eclipse.jetty.server.handler.ContextHandler">
|
||||
<Set name="contextPath">/.well-known</Set>
|
||||
<Set name="handler">
|
||||
<New class="org.eclipse.jetty.server.handler.ResourceHandler">
|
||||
<Set name="resourceBase">
|
||||
<Call name="resolvePath" class="org.eclipse.jetty.xml.XmlConfiguration">
|
||||
<Arg><Property name="jetty.base"/></Arg>
|
||||
<Arg><Property name="jetty.wellknown.dir" default=".well-known"/></Arg>
|
||||
</Call>
|
||||
</Set>
|
||||
<Set name="directoriesListed">false</Set>
|
||||
</New>
|
||||
</Set>
|
||||
</New>
|
||||
|
||||
<Call name="addHandler">
|
||||
<Arg><Ref refid="WellKnownHandler"/></Arg>
|
||||
</Call>
|
||||
</Configure>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html
|
||||
|
||||
[description]
|
||||
Serve static files from a directory for the "/.well-known" context path.
|
||||
|
||||
[tags]
|
||||
handler
|
||||
|
||||
[depend]
|
||||
server
|
||||
|
||||
[xml]
|
||||
etc/well-known.xml
|
||||
|
||||
[files]
|
||||
.well-known/
|
||||
|
||||
[ini]
|
||||
jetty.wellknown.dir?=.well-known
|
||||
|
||||
[ini-template]
|
||||
## Well Known Directory (relative to $jetty.base)
|
||||
# jetty.wellknown.dir=.well-known
|
Loading…
Reference in New Issue