Skip to content

elestio-examples/nextcloud-collabora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nextcloud CI/CD pipeline

Deploy on Elest.io

Deploy Nextcloud with CI/CD on Elestio



Once deployed ...

You can open Nextcloud here:

URL: https://[CI_CD_DOMAIN]
Login: root
password: [ADMIN_PASSWORD]

Configuring Collabora

1.

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.

2.

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.

Activate CRON jobs

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)

Language Setting

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.

  1. Open Elestio dashboard -> CI/CD -> Open terminal / Vs code
  2. 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"
  1. 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.

Talk Configuration

This readme provides step-by-step instructions on configuring Talk for your Nextcloud instance.

Configuration Steps:

1. Enable Talk App

  • 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.

2. Update STUN Server and TURN Servers

  • 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

3. Save Changes

  • Ensure that you save the changes made to the Talk configuration.

Custom domain instructions (IMPORTANT)

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;

About

Deploy Nextcloud with CI/CD on Elestio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages