# Docker with Nginx Proxy Manager installation and a SSL warning

**URL:** <https://forum.mautic.org/t/docker-with-nginx-proxy-manager-installation-and-a-ssl-warning/34166>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [November 18, 2024, 11:28pm UTC](https://forum.mautic.org/t/docker-with-nginx-proxy-manager-installation-and-a-ssl-warning/34166 "2024-11-18T23:28:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rushagencia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rushagencia/32/13084_2.png) [@rushagencia](https://forum.mautic.org/u/rushagencia)\
**Post date:** [November 18, 2024, 11:28pm UTC](https://forum.mautic.org/t/docker-with-nginx-proxy-manager-installation-and-a-ssl-warning/34166/1 "2024-11-18T23:28:07Z")

</div>

**Your software**  
My Mautic version is: 5.1.1  
My PHP version is: 8.1.29  
My Database type and version is: MySQL 8.1.29

**Your problem**  
My problem is:  
Hello, everyone. How are you?

I just completed a Mautic installation via docker-compose using Nginx Proxy Manager (NPM) to reverse proxy the installation to port 8082 on my server.

NPM created an SSL certificate, but Mautic doesn’t seem to recognize it, since it keeps displaying this recommendation:

It is recommended to secure your installation with an SSL certificate (https). Starting February 2020 Google Chrome will stop sending third-party cookies in cross-site requests unless the cookies are secure. Tracking will stop working for Mautic instances running on HTTP. Use HTTPS.

Can anyone tell me what the procedure is in this case? In time, the installation appears as secure in the browser, and the warning seems to be only in Mautic. See the picture:

 ![EstudeTRADE Mautic print](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/19494bf5dbbf3f9acb48053f5e5c57fbf969c792.png)

Thanks for now!

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![ldev](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@ldev](https://forum.mautic.org/u/ldev)\
**Post date:** [November 30, 2024, 2:16pm UTC](https://forum.mautic.org/t/docker-with-nginx-proxy-manager-installation-and-a-ssl-warning/34166/2 "2024-11-30T14:16:21Z")

</div>

I also use nginx proxy manager. this is how to fix it:

It used to be that one could specify this env variable in the docker (or docker compose) environment, so :  
MAUTIC\_TRUSTED\_PROXIES =‘[“192.168.0.1\/20”]’

I’ve tested whole bunch of variations:  
MAUTIC\_TRUSTED\_PROXIES: “0.0.0.0/0”  
TRUSTED\_PROXIES: ‘[“0.0.0.0/0”]’  
MAUTIC\_TRUSTED\_PROXIES: ‘[“0.0.0.0/0”]’

etc. but nothing worked.

Upon checking the dockerfile - it doesn’t appear to be using MAUTIC\_TRUSTED\_PROXIES (anymore?):

> <https://github.com/mautic/docker-mautic/blob/084bcee5cc963379a8c519fe2fad4df8eeb37615/common/entrypoint_mautic_web.sh>

just set it manually in UI:

Settings =\> Configuration =\> System Settings =\> Miscellaneous Settings and then just fill in the “Trusted proxies” box.

0.0.0.0/0 - is to allow all proxies.

But you could also just use your NPM internal ip.

that way mautic will pick up the X-Forwarded-Proto header from NPM and will be aware of that there is HTTPS.

---

<div class="post-metadata">

**Author:** ![cdias-sil](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cdias-sil/32/13597_2.png) [@cdias-sil](https://forum.mautic.org/u/cdias-sil)\
**Post date:** [January 27, 2025, 4:14pm UTC](https://forum.mautic.org/t/docker-with-nginx-proxy-manager-installation-and-a-ssl-warning/34166/3 "2025-01-27T16:14:33Z")

</div>

Can any of you @ldev or @rushagencia share your config for npm? I have set-up proxy host in npm which points to the mautic http container. Everything works fine accessing mautic through [http://mautic.domain.com](http://mautic.domain.com) but as soon as I try to access through [https://mautic.domain.com](https://mautic.domain.com) I get **ERR\_CONNECTION\_TIMED\_OUT**.

I’v tried adding 0.0.0.0/0 to **Trusted proxies** box, saved, cleared cache and rebooted but nothing.  
I’ve tried changing site url from [http://mautic.domain.com](http://mautic.domain.com) to [https://mautic.domain.com](https://mautic.domain.com), saved, cleared cache and rebooted but then I get the same **ERR\_CONNECTION\_TIMED\_OUT** trying to connect to either [http://mautic.domain.com](http://mautic.domain.com) or [https://mautic.domain.com](https://mautic.domain.com).
