Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issues setting up nc-aio locally with Caddy #6974

Answered by szaimen
Fkhrayef asked this question in Questions
Discussion options

I'm using Windows and I have 127.0.0.1 nextcloud.local in my hosts file. and made certificates using mkcert in adjacent folder to compose called certs
compose.yaml:

services:
 nextcloud-aio-mastercontainer:
 image: ghcr.io/nextcloud-releases/all-in-one:latest
 init: true
 restart: always
 container_name: nextcloud-aio-mastercontainer
 volumes:
 - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
 - /var/run/docker.sock:/var/run/docker.sock:ro
 ports:
 - 8080:8080
 environment:
 APACHE_PORT: 11000
 APACHE_IP_BINDING: 0.0.0.0
 SKIP_DOMAIN_VALIDATION: true
 NEXTCLOUD_TRUSTED_DOMAINS: nextcloud.local
 TRUSTED_PROXIES: 172.18.0.0/16
 OVERWRITEHOST: nextcloud.local
 OVERWRITEPROTOCOL: https
 OVERWRITECLIURL: https://nextcloud.local
 networks:
 - nextcloud-aio
 caddy:
 image: caddy:alpine
 restart: always
 container_name: caddy
 volumes:
 - caddy_config:/config
 - caddy_data:/data
 - ./certs:/certs:ro
 networks:
 - nextcloud-aio
 ports:
 - "443:443"
 configs:
 - source: Caddyfile
 target: /etc/caddy/Caddyfile
configs:
 Caddyfile:
 content: |
 https://nextcloud.local:443 {
 tls /certs/nextcloud.local+4.pem /certs/nextcloud.local+4-key.pem
 reverse_proxy 172.18.0.1:11000 {
 header_up X-Forwarded-Proto {scheme}
 header_up X-Forwarded-Host {host}
 }
 }
volumes:
 nextcloud_aio_mastercontainer:
 name: nextcloud_aio_mastercontainer
 caddy_config:
 caddy_data:
networks:
 nextcloud-aio:
 external: true

I need it locally for internal use, production server can be Linux if needed or preferred.
I have tried various ways but couldn't get to what exactly I want (Collabora working, desktop client connecting) it's either one or the other.
The compose I gave is working with desktop client but have issues when running like websockets not connecting for Collabora and the following image:
image

You must be logged in to vote

Hi, please post this at https://help.nextcloud.com. There more eyes will see this.

Replies: 1 comment

Comment options

Hi, please post this at https://help.nextcloud.com. There more eyes will see this.

You must be logged in to vote
0 replies
Answer selected by szaimen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /