-
Notifications
You must be signed in to change notification settings - Fork 17
Nextcloud Push #46
Comments
Hi @hoellen, thanks for maintaining this great project. I think it would be nice to have the HPB shipped by default but (maybe for now) not enabled by default but as you suggested controlled via env variables. Many thanks, Jan. |
Hi @hoellen, I would vote for:
I think this is the most convenient approach for the SOHO users out there, but also allows different configuration in case. Thanks, Udo |
I vote for only adding the push location to the nginx config because there is an official HPB image already. So we could use it the same way we use the database or redis: notify_push:
image: icewind1991/notify_push
environment:
- NEXTCLOUD_URL=https://myclouddomain.com/
- DATABASE_URL=mysql://MYDBUSER:MYDBPASSWORD@db/nextcloud
- DATABASE_PREIX=oc_
- REDIS_URL=redis://:MYREDISPASSSWORD@redis |
Adding another image creates lot of additional hassle. See nextcloud/docker#1422 and nextcloud/notify_push#11 for example. You don't need to pass those variables, when you give You need also to deal with trusted proxies it seems. |
Yes, on the one hand you are right. It adds more complexity to the docker setup. On the other hand the complexity is not added to this image. From a conceptual point of view, this is just like Redis, OnlyOffice, Turn, Elasticsearch or similar: Another service for Nextcloud which can be added to the stack if required. Anyways, I'm fine with both ways. |
After thinking about it, I also don't want to include the push backend into the Nextcloud image. I see it like @hathagat, that it is something like Redis etc. that you can choose to use. We also support very small/limited user setups where you can run Nextcloud e.g. with sqlite. Also if you want to test things, there is less complexity preferred. On the long run I want to provide an own image for the push backend with an easy-to-use config. But I still have to look into it. |
@hoellen what is your conclusion today? |
@hathagat do you wonna share your docker compose config with us? |
Sure! # https://github.com/instrumentisto/coturn-docker-image
coturn:
image: instrumentisto/coturn:latest
container_name: nextcloud-turn
networks:
- frontends
ports:
- "3478:3478"
- "3478:3478/udp"
- '49160-49200/udp'
volumes:
- ${DOCKER_DATA_PATH}/nextcloud/turn/turnserver.conf:/etc/coturn/turnserver.conf
- ${DOCKER_DATA_PATH}/nextcloud/turn/data:/var/lib/coturn
command:
- -n
- --no-cli
- --log-file=stdout
- --min-port=49160
- --max-port=49200
- --realm=${NEXTCLOUD_DOMAIN}
- --use-auth-secret
- --static-auth-secret=${NEXTCLOUD_TURN_SECRET}
environment:
VIRTUAL_HOST: turn.${NEXTCLOUD_DOMAIN}
VIRTUAL_PORT: 3478
restart: always
# https://github.com/strukturag/nextcloud-spreed-signaling
signaling:
container_name: nextcloud-signaling
build: ./signaling
image: my-signaling:latest
depends_on:
- coturn
- nats
- janus
volumes:
- ${DOCKER_DATA_PATH}/nextcloud/signaling/server.conf:/config/server.conf
restart: always
nats:
container_name: nextcloud-nats
image: nats:2.2.1
command: ["-c", "/config/gnatsd.conf"]
volumes:
- ${DOCKER_DATA_PATH}/nextcloud/nats/gnatsd.conf:/config/gnatsd.conf
restart: always
janus:
container_name: nextcloud-janus
build: ./janus
image: my-janus:latest
command: ["janus", "--full-trickle"]
restart: always The Basically I followed this tutorial. |
@hathagat the part I'm missing here is the push part. I'm still trying to run the Following the suggestion on https://github.com/nextcloud/notify_push#push-server-is-not-a-trusted-proxy:
I can use:
cause the nextcloud container exposes on Port 8888. This leads to the issue:
It looks like ":8888" is not a valid string for the push client. Dropping the port
Now the question is: Did anybody have running a notify_push container successfully with @hoellen nextcloud container and if, would he share his knowledge? |
There is a new "high performance backend" for Nextcloud. It uses push to communicate with the Nextcloud clients. As we already use Nginx as a reverse proxy, it could be integrated/controlled very easily via docker env variables.
Should it be optional/default?
Useful links:
Users of the Docker image can leave a reaction or comment here, if they have specific suggestions/concerns.
The text was updated successfully, but these errors were encountered: