I'm running OwnCloud in Docker and have setup NGinx as a reverse proxy. This works perfectly for all my other services, but OwnCloud keeps throwing the untrusted domain error. I've edited the config.php file to add my exampledemain.com but no dice. Does anybody know what I need to do?

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 2 points 2 years ago (3 children)

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?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 2 years ago (1 child)

    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:

    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;
    
  • source
  • parent
  • hideshow 2 child comments