Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > Nextcloud pod

Nextcloud is a self-hosted platform for sharing files and using other productivity applications on the web and mobile devices.

These instructions use our Managed Links service to give HTTPS access to the HTTP-only Nextcloud server.

Managed Links Setup

  1. Access your Manage Links page.
  2. Click Edit Apps
  3. Click Add App
  4. Enter nextcloud for the app's name. If you use a different name, you may have errors accessing CalDAV/CardDAV.
  5. Enter 29317 for the port
  6. Check Enable websockets
  7. Click Save

Nextcloud Setup

  1. Connect to your slot through SSH

  2. Create directories for Nextcloud and its files:

     mkdir -p ~/nextcloud ~/nextcloud/server ~/nextcloud/db
    
  3. Create the following Compose file. Run nano ~/nextcloud/compose.yaml and enter the following text:

     services:
       nc:
         image: nextcloud:apache
         environment:
           - APACHE_DISABLE_REWRITE_IP=1
           - TRUSTED_PROXIES=127.0.0.1
           - OVERWRITEPROTOCOL=https
           - REDIS_HOST=redis
           - POSTGRES_HOST=db
           - POSTGRES_PASSWORD=changethis
           - POSTGRES_DB=nextcloud
           - POSTGRES_USER=nextcloud
         ports:
           - 127.0.0.1:29317:80
         restart: always
         volumes:
           - /home/user/nextcloud/server:/var/www/html
       redis:
         image: redis:alpine
         restart: always
       db:
         image: postgres:alpine
         environment:
           - POSTGRES_PASSWORD=changethis
           - POSTGRES_DB=nextcloud
           - POSTGRES_USER=nextcloud
         restart: always
         volumes:
           - /home/user/nextcloud/db:/var/lib/postgresql/data
         expose:
           - 5432
    

    Choose a single unique password and change changethis in the file to that password. It must match on both lines.

    Then, press Ctrl+S (save) followed by Ctrl+X (exit).

  4. Change to the ~/nextcloud directory: cd ~/nextcloud

  5. Launch Nextcloud: podman-compose up -d

    It may take several minutes to launch. Nextcloud will be ready when you are returned to your shell prompt.

Access Nextcloud with your managed link on your Manage Links page to complete the setup process.