Score:0

OwnCloud Domain showing as localhost

bl flag

I have OwnCloud running behind an nginx reverse proxy on my server. I installed it via the docker-compose.yml, following these instructions: https://doc.owncloud.com/server/next/admin_manual/installation/docker/

Everything works as I expected it besides one thing. The WebDav Link in the lower left corner shows as http://localhost:9001/... and not the acutal domain. Also, the Logout Button redirects to localhost. Everything else works fine.

Here is an image of my problem:

enter image description here

This is my .env Config-File:

OWNCLOUD_VERSION=10.12
OWNCLOUD_DOMAIN=cloud.EXAMPLE.org
OWNCLOUD_TRUSTED_DOMAINS=cloud.EXAMPLE.org
ADMIN_USERNAME=admin
ADMIN_PASSWORD=REDACTED
HTTP_PORT=8080

This is my reverse-Proxy:

server {
        server_name cloud.EXAMPLE.org;
        listen 443 ssl;
        location / {
                proxy_pass http://localhost:9001/;
        }

        ssl_certificate /etc/letsencrypt/live/EXAMPLE.de/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.de/privkey.pem;
}

Thanks in advance for your help!

Score:0
bl flag

I found an answer myself. I had to add the following configurations to my proxy. I didn't know OwnCloud decides the host by looking at the host in the HTTP Response. So the Host had to be changed in the proxy and also the extension for the used protocol (https):

server {
    server_name cloud.EXAMPLE.de;
    listen 443 ssl;
    location / {
        proxy_pass          http://localhost:9001/;
        proxy_set_header    Host cloud.EXAMPLE.de;
        proxy_set_header    X-Forwarded-Proto https;    
    }

    ssl_certificate /etc/letsencrypt/live/EXAMPLE.de/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.de/privkey.pem;
}
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.