(Solved)AIO working with Cloudflare? #2845
-
Hey all, I'm running on Synology NAS. Thank you to all that can help! |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 10 replies
-
Hi, see https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#6-how-to-debug-things |
Beta Was this translation helpful? Give feedback.
-
@H3is3nb3rg404 |
Beta Was this translation helpful? Give feedback.
-
@H3is3nb3rg404 |
Beta Was this translation helpful? Give feedback.
-
I use Docker version of the Cloudflare connector.
You had to add these parameters to the command The command is now: Cloudlfare docker connector starts in the background. |
Beta Was this translation helpful? Give feedback.
-
@H3is3nb3rg404 SOURCES FIREWALL
NEXTCLOUD AIO insert code
For Ubuntu 20.04 - use version: "3.4" LOGIN - https://192.168.1.31:8080 Let me know if it is ok for you. |
Beta Was this translation helpful? Give feedback.
-
I don't use Unraid myself, but I assume it is possible to create a VM. Then you follow my tutorial above. |
Beta Was this translation helpful? Give feedback.
-
Does your Nexcloud AIO work on your domain (subdomain) via your web browser? |
Beta Was this translation helpful? Give feedback.
-
Here's my docker compose combining the nextcloud and cloudflared tunnel in one file. This configuration is for windows, so you might need change something on the volume if you use linux or mac. One thing that I really struggled with was to get the cloudflared tunnel working. For some reason, I need to use the host IP address instead of network alias or the container name for the nextcloud to make it work on the cloudflared tunnel dashboard, thanks to @vawaver on this thread. Cloudflared tunnel config with my host IP
services:
app:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- //var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 80:80
- 8080:8080
- 8443:8443
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=0.0.0.0
- NEXTCLOUD_DATADIR=/run/desktop/mnt/host/d/ncdata
tunnel:
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=your-cloudflared-tunnel-token
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer |
Beta Was this translation helpful? Give feedback.
-
I tried the same as your but I'm not able to end the configuration, this is the message: |
Beta Was this translation helpful? Give feedback.
-
Hello guys! What about working tunnel with STUN or just NextCloud Talk? |
Beta Was this translation helpful? Give feedback.
@H3is3nb3rg404
If you have a working Cloudflare injector let me share my settings for other.
Here is a short tutorial.
SOURCES
OS: Ubuntu server 22.04.02
Local IP address of the device: 192.168.1.31
Domain: cloud.battlezilla.com
FIREWALL
It may be necessary to enable ports on the device 8080 and 11000
NEXTCLOUD AIO
Create a directory and in it the docker-compose.yml file
mkdir nextcloud-aio && cd nextcloud-aio && nano docker-compose.yml
insert code