Deploy Nextcloud with CI/CD on Elestio
You can open Nextcloud here:
URL: https://[CI_CD_DOMAIN]
Login: root
password: [ADMIN_PASSWORD]
On your Nextcloud dashboard, click your user icon in the top right corner, and select Apps from the drop-down list. Navigate to the Office & Text apps section.
Find the Nextcloud Office App, download it, and enable it.
Find the Collabora Online App, download it, and enable it.
Access your user icon, and select Settings from the drop-down list.
On the left navigation bar, click Nextcloud Office under the Administration section.
Toggle Use your own server, enter
https://[CI_CD_DOMAIN]:21005
and click Save. You should receive a server-reachable alert.
Scroll to Advanced settings and set your preferred default file type for documents, to work well with Microsoft Office products, use Office Open XML (OOXML). To automatically watermark documents, enable watermarking under Secure view settings.Navigate to Files. Click Create new + to upload supported files, or choose between text, word document, spreadsheet, or presentation files to create.
The best setting is to use the CRON option in Nextcloud, to configure it go to https://[CI_CD_DOMAIN]/settings/admin and select the CRON option in the list (recommended)
By default, Nextcloud will determine the Web-GUI's language and load it in that language. If you'd rather load it in a different language, however, you can do so by following the procedures listed below.
- Open Elestio dashboard -> CI/CD -> Open terminal / Vs code
- If you open the terminal, type the command (nano config/config.php), otherwise, open config.php in the config folder in vs code, and add the following line at the end of the array object.
"force_language" => "en"
- Then restart the Pipeline.
docker-compose down;
docker-compose up -d;
Similarly, you can swap out "en" with any other language you like, for as "fr" for French.
This readme provides step-by-step instructions on configuring Talk for your Nextcloud instance.
- Open your Nextcloud dashboard.
- Click on your user icon in the top right corner.
- Select "Apps" from the drop-down list.
- Navigate to the
Social & communication
apps section. - Locate the "Talk" app, download it, and enable it.
-
Go to the following URL in your web browser:
https://[CI_CD_DOMAIN]/settings/admin/talk
-
Scroll down to the
STUN Server
section and update the current STUN URL to:[CI_CD_DOMAIN]: 3478
-
In the
TURN Servers
section, add the following details:turn:only [CI_CD_DOMAIN]:3478 <PASSWORD> UPD AND TCP
Replace <PASSWORD>
with the value of the STATIC_AUTH_SECRET
environment variable, which can be found in the Elestio overview under "Update Config > ENV."
Now Talk is configured
- Ensure that you save the changes made to the Talk configuration.
By default, we set up a CNAME on elestio.app domain, but probably you will want to have your own domain.
Step1: Add your domain in the Elestio dashboard as explained here:
https://docs.elest.io/books/security/page/custom-domain-and-automated-encryption-ssltls
Step2: Update the environment variables to reflect your custom domain Open Elestio dashboard > Service overview > Click on the Update CONFIG button > Env tab there edit 'NEXTCLOUD_TRUSTED_DOMAINS' with your real domain and click the button 'Update & Restart'.
Step3: Access the Terminal and execute the command: chown -R www-data:www-data .
.
For dedicated services, execute the following commands before running the above: cd /opt/app;