Mastodon Mastodon - nextcloud and Docker and reverse proxies
 logo
  • Home 
  • Tags 
  • Blog posts 
  1. Home
  2. Blog posts
  3. nextcloud and Docker and reverse proxies

nextcloud and Docker and reverse proxies

Posted on April 25, 2020  (Last modified on July 11, 2024) • 1 min read • 128 words
Solved   Docker   Hosting   Nextcloud  
Solved   Docker   Hosting   Nextcloud  
Share via

I have a nextcloud setup like described here (docker-compose, let’s encrypt proxy companion, postgres and nextcloud). And for a while I couldn’t connect any new nextcloud clients to the installation.

This fixed it:

<?php
$CONFIG = array (
  # manually added because it's not picked up from
  # the env vars once set ... it seems ...

  # the docker IP range
  'trusted_proxies' => ["172.16.0.0/12"],

  # the hostname of the server
  'overwritehost'   => "my.super.secret.server",

  # the ENDUSER->PROXY protocol, NOT the proxy-> nextcloud protocol!
  'overwriteprotocol' => "https",

  #
  # AAAND NOW back to the original config file ...
  # ...
)

Some notes:

  • You have to add this directly to config.php, because once the container has started once the env vars have no effect
  • Restarting the client helps as well.
 Coding fonts
FritzBox, Unify Security Gateway, and router replacements 
In case you want to follow me

Here are some links. The further to the right, the less active.

           
(c) Axel Bock | Powered by Hinode.
Link copied to clipboard
Code copied to clipboard