Bitnami Nextcloud Setup and Configuration Guide

Author

Reads 810

Professional using laptop at desk in a shared office with a focus on work environment.
Credit: pexels.com, Professional using laptop at desk in a shared office with a focus on work environment.

Nextcloud is a powerful self-hosted cloud solution that allows you to store and share files, contacts, and calendars securely. Nextcloud is available as a Bitnami package, making it easy to set up and configure.

To get started with Bitnami Nextcloud, you'll need to download the package from the Bitnami website. The package includes a single-click installer that makes the setup process a breeze.

Nextcloud can be installed on a variety of platforms, including Linux, Windows, and macOS. The installation process is relatively straightforward, and you can have Nextcloud up and running in no time.

The Bitnami Nextcloud package comes with a pre-configured Nextcloud instance, ready to use. This includes a web interface, command-line tools, and a database.

Nextcloud Configuration

To configure Nextcloud, you'll need to set up a Custom OpenID Connect in the Social login settings. This involves adding a new Custom OpenID Connect with specific details such as the Internal name, Title, Authorize URL, Token URL, User info URL, Logout URL, Client Id, Client Secret, and Scope.

Credit: youtube.com, How to Set Up Your Own Nextcloud Server...Step-by-Step!

The Client Id and Client Secret can be found in the Keycloak client Configuration, specifically in the Client Credentials page from the client Installation tab. You'll also need to configure the Groups claim to map roles from Keycloak to groups in Nextcloud. This is done by setting the Groups claim to resource_access.nextcloud.roles.

To complete the configuration, you'll need to manually map the admin role in Nextcloud to the admin group in Keycloak. This can be done by assigning the admin role to the nextcloud client in the Role Mappings tab of the selected user.

Nextcloud Configuration Options

To enable social login in Nextcloud, you need to check certain settings in the Administration section. Specifically, you should check "Prevent create an account if the email address exists in another account" and "Update user profile on every login".

To configure a custom OpenID Connect, you'll need to add a new custom OpenID Connect in Nextcloud. This involves setting the internal name to "keycloak", the title to "Keycloak SSO", and specifying the authorize URL, token URL, user info URL, and logout URL.

Credit: youtube.com, How to Set Up Your Own Nextcloud Server...Step-by-Step!

You'll also need to set the client ID to "nextcloud", the client secret to the value found in the Keycloak client Installation tab, and the scope to "openid". Additionally, you'll need to specify the groups claim as "resource_access.nextcloud.roles".

Roles assigned to users in Keycloak are mapped to groups in Nextcloud. You'll need to manually map the admin role, and may need to map other roles as well.

Automatic login redirection is disabled by default in Nextcloud. To enable it, you'll need to modify the social_login_auto_redirect value in the values-nextcloud.yaml file.

Here are the specific settings you'll need to configure in Keycloak:

Nextcloud Setup

To set up Nextcloud, you'll need to install the helm chart, which can be found in Nextcloud's helm repo. You can check the documentation there for more information.

First, add the chart, and then run the helm install command with the following parameters: the image tag, the Postgres instance as an external database, a PVC for Nextcloud data, and CronJobs to run every 15 minutes.

A fresh viewpoint: Nextcloud Ubuntu Install

Credit: youtube.com, Ditch GOOGLE and Set-up Nextcloud! - Custom Domain, Secure HTTPS

For the image tag, use the version you want to install, such as 21.0.0. You can check Nextcloud's docker page for available images.

Before Nextcloud is fully set up, you'll need to edit the trusted_domains in the config.php file. This will allow you to access Nextcloud from your local IP address.

Here are the parameters for the helm install command:

  • Image tag: specify the version you want to install
  • Postgres instance: use an external database, such as Postgres
  • PVC for data: create a persistent volume claim for Nextcloud data
  • CronJobs: run every 15 minutes to update the dashboard and add new pictures to the map

After editing the config.php file, you should be able to access Nextcloud at http://cluster-ip:32123. The default login is usually admin/changeme.

File Sharing Server

Nextcloud is a file sharing server that puts the control and security of your own data back into your hands.

The Nextcloud file sharing server is installed using Helm charts, specifically nextcloud/nextcloud v4.6.5 and bitnami/mariadb v18.0.1.

This template contains the configuration files needed to install Nextcloud in a Kubernetes cluster.

Nextcloud uses a combination of these Helm charts to provide a secure and reliable file sharing solution.

Storage Setup

To set up storage for Nextcloud, create a namespace for it first. This is where your data will live, and it's convenient to have access to it because Nextcloud will dump its config.php file in the storage.

Credit: youtube.com, How to add multiple HDDs to NextCloud

You'll need to set up a storage provisioner or persistent volume. If you're short on time, you can use the local disk on one of your nodes. This will get you started, but keep in mind that it's not the most scalable solution.

Now that you have storage set up, create a pvc that will bind to it. This pvc will be referenced later when you install Nextcloud.

You'll also need to create some storage for the database. If you used local storage earlier, add it now.

Nextcloud Commands

Nextcloud Commands are a powerful tool for managing your Nextcloud instance. To run these commands, you'll need to open a terminal into your Nextcloud pod.

The Nextcloud occ command, also known as the "ownCloud Console", is Nextcloud's command-line interface. This allows you to run various commands to manage your Nextcloud instance.

To use the occ command, you'll need to run it with a specific wrapper in the terminal. This wrapper will allow you to execute the commands successfully.

Additional reading: Nextcloud Occ Commands

Frequently Asked Questions

What is Bitnami used for?

Bitnami is a platform for launching and deploying applications on servers and cloud environments with ease. It provides a catalog of pre-packaged applications and development stacks for quick deployment.

Is Bitnami owned by VMware?

Yes, Bitnami is owned by VMware, a relationship that began in 2019. Learn more about how this partnership has shaped our services and offerings.

Margaret Schoen

Writer

Margaret Schoen is a skilled writer with a passion for exploring the intersection of technology and everyday life. Her articles have been featured in various publications, covering topics such as cloud storage issues and their impact on modern productivity. With a keen eye for detail and a knack for breaking down complex concepts, Margaret's writing has resonated with readers seeking practical advice and insight.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.