-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Certain requests sent from a Browser are not correctly resolved:
Feb 01 11:03:50 wraxx-html-0001 bash[9696]: {"level":"debug","ts":1643709830.4053314,"logger":"http.handlers.s3proxy","msg":"get from S3","bucket":"wraxx","key":"/dash.simonjenny.dev/index.html"}
Feb 01 11:00:47 wraxx-html-0001 bash[9696]: {"level":"debug","ts":1643709647.560506,"logger":"http.handlers.s3proxy","msg":"get from S3","bucket":"wraxx","key":"/{http.request.host}/index.html"}
I already ask in the Caddy Community and it was suggested, that the proxy does not replace the {http.request.host} variable on every request: https://caddy.community/t/how-can-i-handle-empty-host-variables/14936
This is my s3proxy configuration:
s3proxy {
bucket {$SITES}
region {$AWS_REGION}
endpoint {$AWS_HOST}
index index.html
root /{host}
errors /{host}/index.html
}
xcaddy build command:
xcaddy build \
--with github.com/ss098/certmagic-s3 \
--with github.com/lindenlab/caddy-s3-proxy
Metadata
Metadata
Assignees
Labels
No labels