Also, ich habe bereits folgende Schritte gemacht:
- Installation der App “Client Push”
- Die Apache2-Module “proxy”, “proxy_http” und “proxy_wstunnel” aktiviert und Apache2 neu gestartet.
- In der Apache2-Konfigurationsdatei “nextcloud-le-ssl.conf” dieses hier eingebaut:
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ http://127.0.0.1:7867/
ProxyPassReverse /push/ http://127.0.0.1:7867/
Insgesamt sieht der Inhalt der Datei so aus:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName nc.skayritarbase.de
DocumentRoot /var/www/nextcloud/
ServerAdmin webmaster@skayritarbase.de
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks +MultiViews
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSub$
</IfModule>
</Directory>
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ http://127.0.0.1:7867/
ProxyPassReverse /push/ http://127.0.0.1:7867/
CustomLog /var/log/apache2/nc.skayritarbase.de-access.log combined
ErrorLog /var/log/apache2/nc.skayritarbase.de-error.log
<FilesMatch "\.php$">
<If "-f %{REQUEST_FILENAME}">
SetHandler "proxy:unix:/run/php/php-nextcloud.sock|fcgi://php-nextcloud.sock"
</If>
</FilesMatch>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/nc.skayritarbase.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nc.skayritarbase.de/privkey.pem
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder On
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff
Protocols h2 h2c http/1.1
SuexecUserGroup www-data www-data
</VirtualHost>
</IfModule>
Natürlich Apache2 nach dem Speichern neugestartet.
- In der /var/www/nextcloud/config/config.php am Ende das hier eingefügt:
array (
0 => '[IP_MEINES_SERVERS]',
),
- Die Datei
/etc/systemd/system/notify_push.service mit diesem Inhalt erstellt:
[Unit]
Description = Push daemon for Nextcloud clients
[Service]
Environment=PORT=7867
Environment=NEXTCLOUD_URL=https://nc.skayritarbase.de
ExecStart=/var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud/config/config.php
User=www-data
[Install]
WantedBy = multi-user.target
Dann mit sudo systemctl enable --now notify_push aktiviert.
- Dann in das Verzeichnis /var/www/nextcloud gewechselt und den Befehl
sudo -u www-data php occ notify_push:setup ausgeführt. Es kommt die Meldung, dass man eine
Also, ich habe bereits folgende Schritte gemacht:
- Installation der App “Client Push”
- Die Apache2-Module “proxy”, “proxy_http” und “proxy_wstunnel” aktiviert und Apache2 neu gestartet.
- In der Apache2-Konfigurationsdatei “nextcloud-le-ssl.conf” dieses hier eingebaut:
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ http://127.0.0.1:7867/
ProxyPassReverse /push/ http://127.0.0.1:7867/
Insgesamt sieht der Inhalt der Datei so aus:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName nc.skayritarbase.de
DocumentRoot /var/www/nextcloud/
ServerAdmin webmaster@skayritarbase.de
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks +MultiViews
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSub$
</IfModule>
</Directory>
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ http://127.0.0.1:7867/
ProxyPassReverse /push/ http://127.0.0.1:7867/
CustomLog /var/log/apache2/nc.skayritarbase.de-access.log combined
ErrorLog /var/log/apache2/nc.skayritarbase.de-error.log
<FilesMatch "\.php$">
<If "-f %{REQUEST_FILENAME}">
SetHandler "proxy:unix:/run/php/php-nextcloud.sock|fcgi://php-nextcloud.sock"
</If>
</FilesMatch>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/nc.skayritarbase.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nc.skayritarbase.de/privkey.pem
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder On
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff
Protocols h2 h2c http/1.1
SuexecUserGroup www-data www-data
</VirtualHost>
</IfModule>
Natürlich Apache2 nach dem Speichern neugestartet.
- In der /var/www/nextcloud/config/config.php am Ende das hier eingefügt:
array (
0 => '[IP_MEINES_SERVERS]',
),
- Die Datei
/etc/systemd/system/notify_push.service mit diesem Inhalt erstellt:
[Unit]
Description = Push daemon for Nextcloud clients
[Service]
Environment=PORT=7867
Environment=NEXTCLOUD_URL=https://nc.skayritarbase.de
ExecStart=/var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud/config/config.php
User=www-data
[Install]
WantedBy = multi-user.target
Dann mit sudo systemctl enable --now notify_push aktiviert.
- Dann in das Verzeichnis /var/www/nextcloud gewechselt und den Befehl
sudo -u www-data php occ notify_push:setup ausgeführt, jedoch kommt die Aufforderung eine Systemd-Datei mit diesem Inhalt zu erstellen.
Place the following systemd config at /etc/systemd/system/notify_push.service
[Unit]
Description = Push daemon for Nextcloud clients
[Service]
Environment=PORT=7867
Environment=NEXTCLOUD_URL=https://skbcloud.skayritarbase.de
ExecStart=/var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud/config/config.php
Type=notify
User=www-data
[Install]
WantedBy = multi-user.target
Da ich diese bereits schon gemacht habe, habe ich mit Enter bestätig, aber es kommt diese Meldung:
🗴 push binary doesn't seem to be running, did you follow the above instructions?.