Go to file
Simó Albert i Beltran 4cb3860cf1 Revert "Removed:"
This reverts commit e674ae48d8.
2022-02-09 17:09:38 +01:00
config feat(keycloak): new json with customized values in realm and launch script in dd-ctl with keycloak config 2021-12-30 19:02:36 +01:00
custom.sample fix(custom,dd-ctl): removed unused keycloak template files 2022-02-01 12:32:31 +00:00
docs Capability Course Creator - NextCloud Submission 2022-02-09 13:18:37 +00:00
isard-apps@c0f7ee13b2 Fix etherpad docker image version 2022-01-27 16:42:43 +01:00
isard-sso@3391e00cc3 fix(custom,dd-ctl): removed unused keycloak template files 2022-02-01 12:32:31 +00:00
sysadm Script to create mailu email accounts from keycloak users and configure nextcloud email app 2022-01-31 14:22:40 +01:00
.gitignore Merge branch 'develop' 2021-09-29 15:30:00 +02:00
.gitlab-ci.yml Revert "Removed:" 2022-02-09 17:09:38 +01:00
.gitmodules Fixed submodules to branch master on new installs 2021-06-09 10:52:41 +02:00
LICENSE Upload New File 2021-07-05 15:31:16 +00:00
README.md Update README.md 2022-02-09 15:17:35 +00:00
README_en.md Updated readme cat 2022-02-08 10:46:11 +01:00
README_es.md Updated readme cat 2022-02-08 10:46:11 +01:00
dd-ctl fix(dd-ctl): added nextcloud bruteforcesettings app by default 2022-02-04 07:43:28 +00:00
digitaldemocratic.conf.sample fix(moodle): Added php vars 2022-02-01 16:06:48 +00:00
mkdocs.yml update readme and post-install manual 2022-02-09 02:01:23 +01:00
requirements.txt MkDocs+Gitlab setup 2021-02-22 15:43:07 +01:00
securize_conf.sh aules menu and fixed typo in securize 2021-05-29 18:14:50 +02:00

README_en.md

Digital Democratic

English - Català - Castellano

DD is the educational workspace generated within the framework of Xnets Democratic Digitalisation Plan. It has been created and powered by Xnet, families and promoter centres, IsardVDI, 3iPunt, Directorate for Democratic Innovation, Directorate for Digital Innovation, Commissioner for Social Economy of Barcelona City Council and Consorci dEducació de Barcelona. In collaboration with aFFaC and AirVPN.

License

AGPLv3 (https://www.gnu.org/licenses/agpl-3.0.en.html)

Credits

Pilot project of the Democratic Digitalization Plan led by Xnet and promoter families. Software created by IsardVDI and 3iPunt with the collaboration of MaadiX.net, Affac, the Barcelona City Hall and the Barcelona Education Consortium.

Project status

Project in development. We are finishing the project to shortly make it available to the community so that you can make the contributions and collaborations you want. In the coming months we will modify the code with important changes and improvements. Once it is in a more stable state we will publish it here.

What's this

This project allows to bring up with ease a full identity provider and many apps to have an environment thought for schools and universities. The project will provide an integrated solution to handle the common environment in education:

  • Classrooms: A Moodle instance with custom theme and custom plugins.
  • Cloud drive: A Nextcloud instance with custom theme and custom plugins.
  • Documents: An Onlyoffice instance integrated with Nextcloud.
  • Web pages: A Wordpress instance with custom theme and custom plugins.
  • Pad: An Etherpad instance integrated with Nextcloud.
  • Conferences: A BigBlueButton integrated with Moodle and Nextcloud. This needs a standalone host.
  • Forms: A forms Nextcloud plugin.
  • ... (some apps like jitsi or BigBlueButton are not fully integrated right now)

Administration interface

Now there is an administration interface that allows to easily manage users and groups and keep it in sync between applications. This is done by executing actions on the different applications apis.

To easily migrate and insert users and groups to the system there are also two provided imports:

  • From Google Admin Console as a JSON dump
  • From a CSV file

This admin interface is now in an alpha status but allows to manage users in sync between Keycloak, Moodle and Nextcloud.

Quick start

cp digitaldemocratic.conf.sample digitaldemocratic.conf

Changes default passwords

./securize_conf.sh

Edit digitaldemocratic.conf file variables to suit your needs.

cp -R custom.sample custom

Edit and replace files to personalize the system.

The first time execute:

./dd-ctl repo-update

And then:

./dd-ctl all

NOTE: The SAML Auth in plugin is now automated:

  • Moodle: Not fully automated.

    1. Login to Moodle as admin via: https://moodle.<domain>/login/index.php?saml=off
    2. Go to authentication configuration: https://moodle.<domain>/admin/settings.php?section=manageauths
    3. Enable SAML2 clicking the eye.
    4. Click on configuration on SAML2
    5. Click on the Regenerate certificate button inside the form. After that go back to SAML2 configuration page.
    6. Click on the Lock certificate button.
    7. In the terminal execute the script to autoconfigure: docker exec isard-sso-admin python3 moodle_saml.py
    8. The last thing is to purge moodle cache: missing docker exec php-fpm7 script, do it through moodle web ui
  • Nextcloud: Fully automated. After finishing the make all it should be ready. In case it fails refer to isard-sso/docs.

  • Wordpress: Practically automated. After finishing the make all it should be ready and you will only need to activate the plugin. In case it fails refer to isard-sso/docs.

Instructions for post install

There is a step by step manual in: (https://digitaldemocratic.gitlab.io/digitaldemocratic).

Extended Installation

You can start this project in any docker & docker-compose host (any OS should work). To install those packages in your distro refer to docker & docker-compose in this documentation and in the sysadm folder you have some scripts.

Any distro should work but, if you want to use our sysadm scripts to install docker & docker compose use Debian Buster (10).

Clone and submodules

git clone https://gitlab.com/digitaldemocratic/digitaldemocratic/
cd digitaldemocratic
git submodule update --init --recursive

docker

Refer to the official documentation (https://docs.docker.com/engine/install/) or use our sysadm script if you are on a Debian Buster (10).

docker-compose

Refer to the official documentation (https://docs.docker.com/compose/install/) or use our sysadm script if you are on a Debian Buster (10).

Setup

Copy digitaldemocratic.conf.sample to digitaldemocratic.conf and edit to satisfy your needs. At least (for development) you should adapt the DOMAIN envvar to your root domain.

  • PRODUCTION: You'll need a multidomain dns (or redirect all the subdomains) to your server IP.
  • DEVELOPMENT: You'll have to edit your /etc/hosts and add all the required domains to your development server IP.

Subdomains

  • Keycloak: sso.<yourdomain.org>
  • Admin: admin.<yourdomain.org>
  • Api: api.<yourdomain.org>
  • Moodle: moodle.<yourdomain.org>
  • Nextcloud: nextcloud.<yourdomain.org>
  • Wordpress: wp.<yourdomain.org>
  • Onlyoffice: oof.<yourdomain.org>
  • Etherpad: pad.<yourdomain.org>
  • (optional) FreeIPA: ipa.<yourdomain.org>

Customization

Recursively copy the custom.sample folder to custom and edit the yaml personalization files and menu and substitute the image.

Start the project

The first time (and if you want to upgrade to the latest version later) you should execute:

./dd-ctl update-repo

And after:

./dd-ctl all

Then you can start or stop with:

./dd-ctl down
./dd-ctl up

Integration

Read the SAML_README.md file in isard-sso/docs folder to integrate all the applicactions. Now, Nextcloud and Wordpress should integrate automatically with the Keycloak.