Docker with Nginx Proxy Manager installation and a SSL warning

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:

Thanks for now!

These errors are showing in the log:

Steps I have tried to fix the problem:

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?):

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.