notify_push
notify_push copied to clipboard
502 Proxy Error Notify_push setting up
trafficstars
I was dealing with Notify_Push service and apache2. It doesn't set the connection and give me this error:
**" can't connect to push server: Server error: GET https://192.168.178.109/push/test/cookie resulted in a 502 Proxy Error response:
Apache2 Log:
[Sat Jul 06 03:32:58.233034 2024] [proxy_http:error] [pid 1978] (70014)End of file found: [client 192.168.178.109:33186] AH01102: error reading status line from remote server 127.0.0.1:7867
[Sat Jul 06 03:32:58.233130 2024] [proxy:error] [pid 1978] [client 192.168.178.109:33186] AH00898: Error reading from remote server returned by /push/test/cookie
[Sat Jul 06 03:37:28.678619 2024] [proxy_http:error] [pid 1980] (70014)End of file found: [client 192.168.178.109:36254] AH01102: error reading status line from remote server 127.0.0.1:7867
[Sat Jul 06 03:37:28.678691 2024] [proxy:error] [pid 1980] [client 192.168.178.109:36254] AH00898: Error reading from remote server returned by /push/test/cookie
Systemd Unit:
Description = Push daemon for Nextcloud clients
Documentation=https://github.com/nextcloud/notify_push
[Service]
Environment = PORT=7867
Environment = TLS_CERT=/cert/apache2-sg.crt
Environment = TLS_KEY=/cert/apache2.key
Environment=ALLOW_SELF_SIGNED=true
Environment=NEXTCLOUD_URL=https://192.168.178.109
ExecStart = /var/www/cloud//apps/notify_push/bin/x86_64/notify_push /var/www/cloud/config/config.php
Type=notify # requires the push server to have been build with the systemd feature (enabled by default)
User=www-data
[Install]
WantedBy = multi-user.target
Apache2 Conf:
<VirtualHost *:80>
ServerName 192.168.178.109
Redirect permanent / https://192.168.178.109
</VirtualHost>
<VirtualHost *:443>
ServerName 192.168.178.109
DocumentRoot /var/www/cloud/
<Directory /var/www/cloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
SSLEngine on
SSLCertificateFile /cert/apache2-sg.crt
SSLCertificateKeyFile /cert/apache2.key
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/
</VirtualHost>