I found a similar post to this one. https://help.nextcloud.com/t/nc20-isnt-respecting-x-forwarded-for-header-from-reverse-proxy/107287?u=dankcatlord