# AWX and SSL

**URL:** <https://forum.ansible.com/t/awx-and-ssl/33881>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 23, 2020, 10:54pm UTC](https://forum.ansible.com/t/awx-and-ssl/33881 "2020-09-23T22:54:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel2](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@Daniel2](https://forum.ansible.com/u/Daniel2)\
**Post date:** [September 23, 2020, 10:54pm UTC](https://forum.ansible.com/t/awx-and-ssl/33881/1 "2020-09-23T22:54:56Z")

</div>

As in a previous post, I really don’t want to have to go in and change up the docker image if I don’t have to, so I found in an internet search of a way to do SSL for Ansible, and it was to install the Docker image of Ansible then load up NGINX and redirect to AWX in the Docker image pointing to like port 8555.

I figure If I don’t mess with the Docker image with changes, upgrading should be easier. I am new to AWX and to Docker, so changing and re-writing with virtually no support, at least paid support.

Any other ways, this is working, but I would like to have other ideas.

Thank you  
Daniel

---

<div class="post-metadata">

**Author:** ![sdmorel](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sdmorel](https://forum.ansible.com/u/sdmorel)\
**Post date:** [September 29, 2020, 11:49am UTC](https://forum.ansible.com/t/awx-and-ssl/33881/2 "2020-09-29T11:49:56Z")

</div>

Hello,

There are two variables in the inventory where you can set the SSL certificate and key when installing AWX.  
[https://github.com/ansible/awx/blob/devel/installer/inventory#L68](https://github.com/ansible/awx/blob/devel/installer/inventory#L68)

In case of a Docker-compose installation, they will be mounted inside the Nginx container and used to serve AWX with TLS  
[https://github.com/ansible/awx/blob/devel/installer/roles/local\_docker/templates/docker-compose.yml.j2#L43](https://github.com/ansible/awx/blob/devel/installer/roles/local_docker/templates/docker-compose.yml.j2#L43)

---

<div class="post-metadata">

**Author:** ![Selvam\_Elangovan](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Selvam\_Elangovan](https://forum.ansible.com/u/Selvam_Elangovan)\
**Post date:** [September 29, 2020, 11:53am UTC](https://forum.ansible.com/t/awx-and-ssl/33881/3 "2020-09-29T11:53:21Z")

</div>

Please mount cert in appropriate dir in docker
