Http://localhost:31000/i... instead of https://mydomain.com/i/

Hello
My server is on Yunohost and I installed my Diaspora pod with a docker as described at the following address: https://github.com/aymhce/diasporadocker_ynh

As described in the attached image, if I want to invite friends, I have the address http://localhost:31000/i… instead of https://mydomain.com/i/

My server uses only Nginx and in the configuration nginx diaspora, I have the following line which corresponds to the address seen above:

proxy_pass http://localhost:31000;
proxy_read_timeout 30s;

Can you help me fix this problem?
Thank you for your help

Capture

Hello

I found the solution to my problem. If it helps, here is what worked for me: it was enough to add the following lines in the file nginx diasporadocker.conf

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;