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?

  • InEnduringGrowStrong
    link
    fedilink
    English
    32 years 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.worldOP
      link
      fedilink
      English
      22 years 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?

      • InEnduringGrowStrong
        link
        fedilink
        English
        12 years 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.

      • @fiddlestix@lemmy.worldOP
        link
        fedilink
        English
        12 years ago

        proxy_pass https://

        Thanks. I found it, but still borked. Need to do some digging. Strange things are afoot at the Circle K …

  • t0m5k1
    link
    fedilink
    English
    22 years ago

    What env vars are you using for the docker and what’s in the config.php?

  • @nate3d@lemmy.world
    link
    fedilink
    English
    12 years ago

    If you’re hosting via docker, I highly recommend deploying a Traefik container as it is a phenomenal reverse proxy to pair with containerized hosting

  • @fiddlestix@lemmy.worldOP
    link
    fedilink
    English
    02 years ago

    Yeah see I’m not even sure what the env vars are. I’m running it with docker-compose and the only alterations I’ve made to anything are to add my IP address to the config file in the trusted domains array. That’s definitely where it needs to go because if I take it out then it flops hard.