# How to deploy mender API gateway?

**URL:** <https://hub.mender.io/t/how-to-deploy-mender-api-gateway/4179>\
**Category:** General Discussions\
**Tags:** mender-server, api-gateway\
**Created:** [October 12, 2021, 9:31pm UTC](https://hub.mender.io/t/how-to-deploy-mender-api-gateway/4179 "2021-10-12T21:31:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mho](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@mho](https://hub.mender.io/u/mho)\
**Post date:** [October 12, 2021, 9:31pm UTC](https://hub.mender.io/t/how-to-deploy-mender-api-gateway/4179/1 "2021-10-12T21:31:36Z")

</div>

I’ve deployed Mender Server open source using the helm charts provided by Mender. I’m trying to increase the artifact size limit, which I did by updating the MaxImageSize constant in the deployments repo (that was fine), and by increasing this value:

> <https://github.com/mendersoftware/mender-api-gateway-docker/blob/master/common.nginx.conf#L166>

However, I don’t know how to deploy this change using helm. I noticed that the default api\_gateway in helm charts pulls the traefik docker image: [mender-helm/values.yaml at master · mendersoftware/mender-helm · GitHub](https://github.com/mendersoftware/mender-helm/blob/master/mender/values.yaml#L35)

Am I supposed to change that to my custom docker container built from the mender-api-gateway-docker repo?

If so, I was getting errors when I deployed the mender-api-gateway-docker container, because it couldn’t find the cert.crt and private.key files. How do I pull those in?
