Nextcloud/Synology/Portainer/HaProxy

Wondering if anyone is using similar setup.

I am trying to install Nextcloud on my Synology NAS using Portainer and Docker Compose

I have a pfsense router/firewall that I use haproxy
I have pointed nextcloud.mydomain.com to port xx443 in haproxy

I have tried using the following docker compose:


services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1038
- PGID=100
- TZ=America/NewYork

volumes:
  - /volume2/docker_ssd/nextcloud/config:/config
  - /volume1/data/nextcloud:/data
ports:
  - xx443:xx443
restart: unless-stopped

I cannot reach the server -
When going to https://nextcloud.mydomain.com I get the following:
— 400 Bad Request

The plain HTTP request was sent to HTTPS port

nginx

But I can’t reach the nextcloud server locally either using 192.168.1.xx:xx443

Any help or thoughts on how I should configure would be helpful. I was trying to handle this at the haproxy level because I may be moving away form Synology soon

I assume that xx are placeholders and that the actual port number is something like 10443.

If so, try the following:

ports:
  - 10443:443

This will map port 10443 on the Docker host to port 443 in the container.

Also make sure HA proxy points to https://xxx.xxx.xxx.xxx:10443, “Encrypt(SSL)” is set to “yes”, and “SSL checks” is set to “no”, in your HA Proxy backend config. Also try clearing your browser cache.

If that still doesn’t help, maybe post your HA Proxy, and the output of:

occ config:list system

Also, since you are using the Linuxserver.io image, it might make sense to ask your question here: Support | LinuxServer.io

And for specific questions about HA Proxy on pfSense, you also might want to ask here: https://forum.netgate.com/

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.