in nginx:
server {
...
location / {
...
proxy_pass https://redacted.......;
proxy_pass_request_headers on;
proxy_pass_header Set-Cookie;
proxy_set_header HOST $host;
proxy_set_header Referer $http_referer;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
...
}
}
I think the was a trusted proxy setting in owncloud itself that needed to be set too, or maybe I'm thinking of another service.