[#260] Use namespace as domain when resolve bucket
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
a61ff3b8cb
commit
055cc6a22a
16 changed files with 159 additions and 46 deletions
|
@ -96,6 +96,8 @@ type Config struct {
|
|||
Log *zap.Logger
|
||||
Metrics *metrics.AppMetrics
|
||||
|
||||
RequestMiddlewareSettings s3middleware.RequestSettings
|
||||
|
||||
// Domains optional. If empty no virtual hosted domains will be attached.
|
||||
Domains []string
|
||||
|
||||
|
@ -106,7 +108,7 @@ type Config struct {
|
|||
func NewRouter(cfg Config) *chi.Mux {
|
||||
api := chi.NewRouter()
|
||||
api.Use(
|
||||
s3middleware.Request(cfg.Log),
|
||||
s3middleware.Request(cfg.Log, cfg.RequestMiddlewareSettings),
|
||||
middleware.ThrottleWithOpts(cfg.Throttle),
|
||||
middleware.Recoverer,
|
||||
s3middleware.Tracing(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue