Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Nextcloud example

Before everything else, mv db.env.template db.env and adapt it to your needs! Also mv scripts/env.sh.template scripts/env.sh and adapt it to your needs!

Test setup

notify_push with test setup

Not working: Maybe a 'h2' issue?!: nextcloud/notify_push#89
No, nginx problem (i.e. trailing '/' at end of proxy_pass)!

  • You are (probably) using a dummy cert
  • Map the fqn(s) of your server to your ip in /etc/hosts:
    # testing nextcloud 
    192.168.10.20 breitbandig breitbandig.local
    192.168.10.20 www.breitbandig.local
    192.168.10.20 signaling.breitbandig.local
    192.168.10.20 netzgeneration netzgeneration.local
    192.168.10.20 www.netzgeneration.local
    192.168.10.20 signaling.netzgeneration.local
    
  • Edit config/config.php to include the name(s) in the array of trusted_domains:
      // TODO tp: This is ways to much but 'nc_web_1' does not work...
      'trusted_proxies' => ['10.88.2.0/24'],
      'trusted_domains' => 
    array (
      0 => 'localhost:8443',
      1 => 'breitbandig:8443',
      2 => 'breitbandig.local:8443',
      3 => 'www.breitbandig.local:8443',
      4 => 'signaling.breitbandig.local:8443',
      5 => 'netzgeneration:8443',
      6 => 'netzgeneration.local:8443',
      7 => 'www.netzgeneration.local:8443',
      8 => 'signaling.netzgeneration.local:8443',
    ),
  • Create the network proxy-tier. The gateway of this network is also the DNS resolve address to use!
  • Install the app 'Client Push' and enable it
  • ./scripts/occ.sh notify_push:setup https://breitbandig.local:8443/nextcloud/push should run but errors with
    • 🗴 can't connect to push server: Client error: GET https://breitbandig.local:8443/nextcloud/push/test/cookie resulted in a 404 Not Found response
  • Use wget --no-check-certificate https://localhost:8443/nextcloud/index.php/apps/notify_push/test/version for testing
  • You could try https://breitbandig.local:8443/nextcloud/push/test/cookie as well

Known issues

TODOs

DB backup and restore

Tips and tricks

Apps/Plugins

full text search

IAM/SSO/Federation