Seafile behind NAT with Nginx

Don’t bother messing around with nat loopback and ip level redirections, it’s finicky and not well supported on router OS’. I’d say you reserve a DNS name for the seafile server and then assign that name to the correct IP address for each subnet, that definitely solved it for me.

btw, we wouldn’t need to do all of this if it wasn’t for this (Use SERVICE_URL and FILE_SERVER_ROOT as relative URLs)