Enable HTTPS Raspberry Pi

I have a Raspberry 5 with OpenMediaVault installed with its subsequent Nextcloud installation. I also have Portainer and Wireguard with Pihole to block ads to devices that are connected to the Wireguard VPN.

For certain Nextcloud functions I need to switch from HTTP to HTTPS but I can’t find any docs/tutorials on how to do it.

I installed Nextcloud using Docker-Compose on portainer.

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb:latest
    restart: always
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=XXX
      - MYSQL_PASSWORD=XXX
      - MYSQL_DATABASE=XXX
      - MYSQL_USER=XXX

  app:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - /srv/dev-disk-by-uuid-7496926f-b9e1-4229-a609-2673310bfa46/nextcloud/nextcloud:/var/www/html
    environment:
      - MYSQL_PASSWORD=XXX
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=XXX
      - MYSQL_HOST=db

I do not find any guide/tutorial on how to enable this option on my raspberry. My nextcloud version is 29.0.3

You appear to be using the micro-services Docker image (there numerous images, some of which incorporate HTTPS support in other ways).

For that image, the docs (including HTTPS deployment examples) are linked from its Docker hub page and located here: https://github.com/nextcloud/docker

1 Like