amazon s3 - Is it possible for traefik to append index.html to empty ('/') paths? -
how can conditionally append "index.html" request url ends in slash?
as background: deploy multiple static, single page apps multiple domain names single s3 bucket web hosting enabled. bucket available as: https://our-bucket-name.s3.amazonaws.com
the bucket organized object key prefix that: https://our-bucket-name.s3.amazonaws.com/environment/app_name/build_id/index.html https://our-bucket-name.s3.amazonaws.com/environment/app_name/build_id/app.css https://our-bucket-name.s3.amazonaws.com/environment/app_name/build_id/app.js
if there request for: https://www.example.com/ should routed to: https://our-bucket-name.s3.amazonaws.com/environment/app-name/build_id/index.html
if there request for: https://www.example.com/app.css should routed to: https://our-bucket-name.s3.amazonaws.com/environment/app-name/build_id/app.css
not sure if relevant, traefik here kubernetes ingress want backed aws s3.
you use addprefix or replacepath modifier, though need create matcher on fontend well.
steps
- create front end match blank path rule
- add modifier front end. replacepath should trick
- route backend
wiki
Comments
Post a Comment