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

  1. create front end match blank path rule
  2. add modifier front end. replacepath should trick
  3. route backend




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -