nextcloud / nextcloud/notify_push
same domain - multiple ports
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 344
- Forks
- 64
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
Hi,
I have nc running on alternative ports because port 80/443 aren't avaliable; nc.domain:4443 - nc.domain.4444
I'm trying to make notify_push to work and i need some help.
Already tried to create multiple services with diferent ports (ports listening ok):
[Unit]
Description = Push daemon for Nextcloud clients
[Service]
Environment=PORT=7868
Environment=NEXTCLOUD_URL=https://nc.domain:4443
ExecStart=/var/www/nextcloud2/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud2/config/config.php
User=www-data
[Install]
WantedBy = multi-user.target
on nginx
location ^~ /push/ {
proxy_pass http://localhost:7868/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Have tried in this 2 ways to make work...
sudo -u www-data php occ Notify_push:setup
This setup wizard is intended for use on single server instances
where the nextcloud server, web server/reverse proxy and push daemon all run on the same machine.
If your setup is more complex or involves any kind of load balancing
you should follow the manual setup instruction on the README instead
https://github.com/nextcloud/notify_push
Press enter to continue or ESC to cancel...
Push binary seems to be running already
🗴 failed to run self-test.
test output: ✓ redis is configured
🗴 using unencrypted https for push server is strongly discouraged
🗴 push server url is set to localhost, the push server will not be reachable from other machines
✓ push server is receiving redis messages
🗴 push server can't load mount info from database
See the steps in the README for manual setup instructions: https://github.com/nextcloud/notify_push
and
sudo -u www-data php occ Notify_push:setup https://nc.domain:4443
✓ redis is configured
🗴 push server is not receiving redis messages (received 636671883, got 0)
Some idea to make this work (if is possible)?
Thank you,
Wilson
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the manual setup instructions in the notify_push README, then compare the shown systemd service, NEXTCLOUD_URL, and nginx /push/ proxy configuration with the occ Notify_push:setup output. Reproduce the self-test and Redis-message checks; done means the push server is reachable on the alternate port and receives notifications without the reported failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, php, redis, rust
- Domain
- backend, devops, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100