>>>>> Grzegorz Grzybek <[email protected]>: > Hi > With whiteboard ( > https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.http.whiteboard.html#d0e90148) > you can register resources to be served from a bundle.
Right, when you say this, I remember that I have been down this road before, years ago, and I knew that. > Real "static content" is best served from NGinx/proxy, but > Jetty/Tomcat/Undertow have own configs for that. > So to make it simple (serving from directory) you have to think outside of > OSGi. Yup! > With Pax Web Jetty feature comes default jetty.xml which contains this for > example: > <Set name="handler"> > <New id="GzipHandler" > class="org.eclipse.jetty.server.handler.gzip.GzipHandler"> > <Set name="handler"> > <Ref refid="OrigHandler" /> > </Set> > </New> > </Set> > you can however configure different "handler" like > https://javadoc.jetty.org/jetty-9/org/eclipse/jetty/server/handler/ResourceHandler.html > - I can't give you XML snippet from top of my head, but you could try > asking ChatGPT :) Yup! Plain old google found me some configs earlier. But both those configs and nginx configs for serving static files would kind of explode the size of a HOWTO for using oldalbum to fix EXIF metadata for scanned files. Hm... still thinking, but thanks for the pointers and heads up/reminder on the resource serving.
