Skip to content

Commit

Permalink
config(traefik): enable compression for api server (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbase12 authored Jul 17, 2024
1 parent ee230e7 commit fcbfe60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion demo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ services:
- "traefik.docker.network=frontend"
- "traefik.http.services.api-service.loadbalancer.server.port=8200"
- "traefik.http.services.api-service.loadbalancer.healthcheck.path=/api/cloud-entry-point"
- "traefik.http.middlewares.api-middleware.headers.customrequestheaders.nuvla-authn-info="
- "traefik.http.middlewares.api-remove-authn-info.headers.customrequestheaders.nuvla-authn-info="
- "traefik.http.middlewares.api-compress.compress=true"
- "traefik.http.middlewares.api-middleware.chain.middlewares=api-remove-authn-info,api-compress"
- "traefik.http.routers.api-router.rule=PathPrefix(`/api`)"
- "traefik.http.routers.api-router.entrypoints=websecure"
- "traefik.http.routers.api-router.tls=true"
Expand Down
4 changes: 3 additions & 1 deletion prod/core/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ services:
- "traefik.enable=true"
- "traefik.http.services.api-service.loadbalancer.server.port=8200"
- "traefik.http.services.api-service.loadbalancer.healthcheck.path=/api/cloud-entry-point"
- "traefik.http.middlewares.api-middleware.headers.customrequestheaders.nuvla-authn-info="
- "traefik.http.middlewares.api-remove-authn-info.headers.customrequestheaders.nuvla-authn-info="
- "traefik.http.middlewares.api-compress.compress=true"
- "traefik.http.middlewares.api-middleware.chain.middlewares=api-remove-authn-info,api-compress"
- "traefik.http.routers.api-router.rule=Host(`example.com`) && PathPrefix(`/api`)"
- "traefik.http.routers.api-router.entrypoints=websecure"
- "traefik.http.routers.api-router.tls.certresolver=cert-resolver"
Expand Down
4 changes: 3 additions & 1 deletion test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ services:
- "traefik.docker.network=frontend"
- "traefik.http.services.api-service.loadbalancer.server.port=8200"
- "traefik.http.services.api-service.loadbalancer.healthcheck.path=/api/cloud-entry-point"
- "traefik.http.middlewares.api-middleware.headers.customrequestheaders.nuvla-authn-info="
- "traefik.http.middlewares.api-remove-authn-info.headers.customrequestheaders.nuvla-authn-info="
- "traefik.http.middlewares.api-compress.compress=true"
- "traefik.http.middlewares.api-middleware.chain.middlewares=api-remove-authn-info,api-compress"
- "traefik.http.routers.api-router.rule=PathPrefix(`/api`)"
- "traefik.http.routers.api-router.entrypoints=websecure"
- "traefik.http.routers.api-router.tls=true"
Expand Down

0 comments on commit fcbfe60

Please sign in to comment.