-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide property to indicate the index page for static resources #15320
Comments
@brunolmfg would you be willing to contribute this feature? |
@geoand I've took a look and some considerations came out. Maybe it's better to create a quarkus.http.static-resources.index-page=index.html
quarkus.http.static-resources.max-age=24H
quarkus.http.static-resources.max-cache-size=10000
quarkus.http.static-resources.cache-entry-timeout=30S
quarkus.http.static-resources.include-hidden=false The property I've also observed that an internal |
Sounds reasonable.
I would need to look at the code, but off the tope of my head, I think it makes sense to remove it |
Description
Providing a configuration property to indicate the index page for static resources will allow use a different filename. This is only possible with undertow extension using the
welcome-file-list
entry onweb.xml
. The vertx-http extension could provide an option like this:quarkus.http.index-page=/default.html
Implementation ideas
The static resources are provided by VertX Web using
StaticHandler
that only accept one filename definition. So the new config property will define theindexPage
attribute of the createdStaticHandler
for the static resources insrc/main/resources/META-INF/resources
.Will need to change the
StaticResourcesProcessor
andStaticResourcesRecorder
to consider theindexPage
property atHttpBuildTimeConfig
.The text was updated successfully, but these errors were encountered: