Using Nextcloud to Build an Enterprise Web Disk System
Application Scenario
Nextcloud is a suite of open-source cloud based storage software for self-built private cloud disks for enterprises. Nextcloud supports PC, Android, and iOS, and you can easily synchronize with vital data stored on servers, including files, schedules, contacts, and bookmarks. Supported By FlexusL, the Nextcloud image uses Ubuntu 22.04 and is deployed using Docker. The Nginx, MySQL, phpMyAdmin, and Docker have been preconfigured in the image. This section describes how to use Nextcloud to build an enterprise web disk system.
Resource Planning and Costs
This practice uses the following resource planning as an example. You can adjust it as required.
Resource |
Configuration |
Description |
---|---|---|
Cloud server |
|
Select appropriate instance specifications based on your service requirements. |
Image |
Nextcloud |
Select the Nextcloud application image. |
Security group |
Inbound rule: |
|
Domain name |
wpwebsite.com |
|
Process
Procedure |
Description |
---|---|
Purchase a FlexusL instance and select the Nextcloud application image. |
|
Add inbound security group rules to ensure that the application preinstalled in the image can be accessed. |
|
Log in to the frontend page and install Nextcloud. |
|
On the dashboard, perform the following operations:
|
Step 1: Purchase a FlexusL Instance
- Log in to the FlexusLconsole and click Buy FlexusL.
- Specify required parameters for the FlexusL instance.
Parameter
Example
Description
Region
CN-Hong Kong
For low network latency and quick resource access, select the region nearest to your target users. After a FlexusL instance is created, the region cannot be changed. Exercise caution when selecting a region.
Application Images
Nextcloud
Select the Nextcloud application image.
Instance Specifications
2 vCPUs | 4 GiB memory and 80 GiB system disk
Select instance specifications as needed.
Instance Name
Nextcloud-Example
Customize an instance name that is easy to identify, for example, Nextcloud-Example.
(Optional) Associated Services
- Data disk: 10 GiB
- Host security
- Cloud backup vault: 90 GiB
You can bundle any of the services to your FlexusL instances as needed: EVS, HSS (basic edition), and CBR and set specifications as needed.
Required Duration
1 month
The minimum duration of a purchase is one month and the maximum duration is three years.
Auto-renew is enabled by default, which means the purchased FlexusL instances will be automatically renewed before they expire. If you do not enable auto-renew during the purchase process, you can still enable it later after the instances are created. For more information about auto-renewal rules, see Auto-Renewal Rules.
Quantity
1
Set the number of FlexusL instances to be purchased.
- Click Buy Now and complete the payment as prompted.
- Go back to the FlexusL console and view the purchased FlexusL instance.
After a FlexusL instance is created using an application image, wait until the image with the pre-installed application is up and running. Then, you can perform operations such as restarting or stopping the instance, or resetting the password. Otherwise, the installation may fail and you cannot log in to the image application dashboard.
Step 2: Configure Security Groups
Add inbound security group rules to ensure that the application preinstalled in the image can be accessed.
- Log in to the FlexusL console and click a resource card to go to the instance details page.
- In the navigation pane on the left, choose Cloud Servers. Locate the server and click its name.
- On the Security Groups tab, click Add Rule. In the displayed dialog box, add rules displayed in the following figure and click OK.
The following figure only displays common rules. You can add more rules as needed.
Table 1 Security group rules Priority
Action
Type
Protocol & Port
Source
Description
1
Allow
IPv4
TCP: 80
0.0.0.0/0
Specifies the internal forwarding port of application images
1
Allow
IPv4
TCP: 9000
0.0.0.0/0
Allows external access to the application O&M dashboard.
1
Allow
IPv4
TCP: 9001
0.0.0.0/0
Allows external access to the application dashboard.
Step 3: Initialize Nextcloud
The image application dashboard needs to be initialized only when you log in for the first time.
- Obtain the administrator username and password for logging in to Nextcloud.
- In the address bar of a local browser, enter http://EIP:9000 to log in to the application O&M dashboard.
The username and password for logging in to the dashboard are the root user and password of the FlexusL instance. A FlexusL instance does not have an initial password. Reset the password and use it to log in to the dashboard.
- Choose My Apps and click the App icon.
- Choose Access and click Initial Account to view the username and password of the administrator.
- In the address bar of a local browser, enter http://EIP:9000 to log in to the application O&M dashboard.
- On the Overview page, click Access in the Dashboard field in the Image area.
If the dashboard of WordPress cannot be accessed, it may be because the port for accessing the dashboard is not allowed or the application has not been up and running. To solve this problem, see Why Can't I Open the Dashboard of the Application Pre-installed in the Application Image?
- Set the username and password of the Nextcloud administrator and click Log in.
If a message is displayed indicating that the username or password you entered is invalid when you attempt to log in to the application dashboard, refer to Why Can't I Access the Dashboard of the Application Pre-installed in the Application Image After Entering the Initial Username and Password?
- After the installation is complete, you can continue to install recommended applications as prompted or click Cancel.
You can still install these applications on the management page subsequently.
- You can go through the pop-ups to learn about the Nextcloud functions, and then configure Nextcloud on the management page.
Then, you have obtained a Nextcloud hosting server. You can start using Nextcloud or follow the steps in Step 4: Deploy Nextcloud to install applications, configure SMTP, and configure domain names.
Step 4: Deploy Nextcloud
This section describes some basic operations of Nextcloud. For details, see Nextcloud Documentation.
- Click in the upper right corner and choose Apps to view the applications integrated with Nextcloud.
- Click Enable.
Configuring an SMTP mail server in an application is very important. It can be used to get back your passwords and receive important notifications. You are advised to configure the SMTP service to enable the email notification function.
- Click in the upper right corner and click Personal.
- Enter the sender's email address, for example, example@163.
The email address must be available, and the SMTP function must have been configured.
- Choose Administration > Basic Settings > Email Server, and configure SMTP information.
In this example, the 163 mailbox is only for reference. Please configure the corresponding parameters when other mailboxes are used.
Parameter
Description
Send mode
Select SMTP.
Encryption
Select SSL/TLS.
From address
Enter an email address, for example, example@163.com.
Server address
Enter smtp.163.com for the 163 email server.
Port number
Enter 465.
Authentication method
Select Authentication required.
Credentials
- SMTP Username: Set it to the email address.
- SMTP Password: Set it to the authorization code obtained when configuring SMTP for example@163.com rather than the login password of example@163.com.
- Click Store credentials.
- Click Send email to test whether the SMTP has been successfully configured.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot