Dns not working on selfhost with docker

Finally I tried to take it out from any reverse proxy and it’s working nice. When it’s proxied I’m experiencing the same behaviour as I previously stated on that post, last message speaking with @Nikolas :

If I access DocSpace from my local network with my local DNS pointing to the nginx reverse proxy everything works fine. Document editor opens extremely fast and all works wonders. But if I try to do so on another local network (so external connection) Document editor hangs on this state for like 30-120s (or more) and (normally) finally loads the Document:

image

Nginx config:

proxy_set_header X-Forwarded-Proto $forward_scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
server_tokens off;
ssl_verify_client off;
add_header X-Content-Type-Options nosniff;
ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers   on;
proxy_set_header Connection $http_upgrade;
 root /usr/share/nginx/html;