Comment on OwnCloud and NGinx = untrusted domain = sadface
InEnduringGrowStrong@sh.itjust.works 1 year ago
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.
fiddlestix@lemmy.world 1 year ago
Thanks a lot. Whereabouts do I add it to Nginx? Do I need to do this through the dashboard for the proxy host or is there something in docker that I need to add?
fiddlestix@lemmy.world 1 year ago
Thanks. I found it, but still borked. Need to do some digging. Strange things are afoot at the Circle K …
7Sea_Sailor@lemmy.dbzer0.com 1 year ago
Sounds like you’re using nginx proxy Manager, a web based frontend for nginx. If so, you have to edit your existing host, change to custom locations, add one with “/” as the address and the same containername and port. Then click the cogwheel in this entry to open a text box for custom rules. You can paste the following lines into there:
fiddlestix@lemmy.world 1 year ago
Thanks a lot. I’m still getting trusted domain errors. Obviously need to have a dig around.
InEnduringGrowStrong@sh.itjust.works 1 year ago
I configure nginx with text condig files.
No clue how or where that is in your setup, but presumably somewhere where you configure the proxypass and server names.