Skip to content

Commit

Permalink
Update Traefik CORS options for the Uploader
Browse files Browse the repository at this point in the history
Add the PATCH method and headers required for tusd

C3SR-40
  • Loading branch information
youngest committed Nov 15, 2021
1 parent 6e86157 commit 527dc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ services:
- "traefik.http.routers.mlmodelscope-uploader.entrypoints=websecure"
- "traefik.http.routers.mlmodelscope-uploader.tls.certresolver=letsencrypt"
- "traefik.http.services.mlmodelscope-uploader.loadbalancer.server.port=80"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowMethods=GET,OPTIONS,PUT"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowMethods=GET,OPTIONS,PUT,PATCH"
- "traefik.http.middlewares.add-cors-uploader.headers.accesscontrolalloworiginlist=https://staging.mlmodelscope.org"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowCredentials=true"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowHeaders=origin,x-requested-with,content-type,accept,x-request-id"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowHeaders=origin,x-requested-with,content-type,accept,x-request-id,tus-resumable,upload-length,upload-metadata,upload-offset"
- "traefik.http.middlewares.add-cors-uploader.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.add-cors-uploader.headers.addvaryheader=true"
- "traefik.http.routers.mlmodelscope-uploader.middlewares=add-cors-uploader"
Expand Down

0 comments on commit 527dc9a

Please sign in to comment.