admin:services:re2o
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
admin:services:re2o [2017/11/20 07:55] – chirac | admin:services:re2o [2017/11/20 08:09] (Version actuelle) – chirac | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
======== Re2o ======== | ======== Re2o ======== | ||
+ | Soft inter asso de gestion users et reseau. Cf [[https:// | ||
+ | ===== Utilité pour federez ===== | ||
+ | L' | ||
+ | |||
+ | L' | ||
+ | |||
+ | ===== Instalation ===== | ||
+ | |||
+ | ==== Démarrage ==== | ||
+ | |||
+ | Sur dodecagon : | ||
+ | Suivre le readme.sh; on aurait pu utiliser le script d' | ||
+ | |||
+ | On clone le dépot [[https:// | ||
+ | |||
+ | On installe toutes les dépendances avec apt et pip3, suivre le readme pour cela : | ||
+ | |||
+ | < | ||
+ | apt install python3-django python3-dateutil texlive-latex-base texlive-fonts-recommended python3-djangorestframework python3-django-reversion python3-pip libsasl2-dev libldap2-dev libssl-dev | ||
+ | |||
+ | pip3 install django-bootstrap3 django-ldapdb django-macaddress | ||
+ | </ | ||
+ | |||
+ | ==== Bdd ==== | ||
+ | |||
+ | On choisi mysql en local comme base de donnée django. On initialise la bdd : | ||
+ | |||
+ | < | ||
+ | apt install python3-mysqldb mysql-client | ||
+ | |||
+ | CREATE DATABASE re2o collate=' | ||
+ | CREATE USER ' | ||
+ | GRANT ALL PRIVILEGES ON re2o.* TO ' | ||
+ | FLUSH PRIVILEGES; | ||
+ | </ | ||
+ | |||
+ | ==== Ldap ==== | ||
+ | |||
+ | Vu qu'on migre depuis l' | ||
+ | Ensuite on remplace dans les fichiers dc=example, | ||
+ | On rajoute le ssl avec | ||
+ | olcTLSCertificateKeyFile: | ||
+ | olcTLSCACertificateFile: | ||
+ | olcTLSCertificateFile: | ||
+ | dans schema.db , enfin : | ||
+ | |||
+ | < | ||
+ | service slapd stop | ||
+ | rm -rf / | ||
+ | rm -rf / | ||
+ | slapadd -n 0 -l schema.ldiff -F / | ||
+ | slapadd -n 1 -l db.ldiff | ||
+ | chown -R openldap: | ||
+ | chown -R openldap: | ||
+ | service slapd start | ||
+ | </ | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | On crée le settings_local.py, | ||
+ | |||
+ | On applique les migrations, python3 manage.py migrate, ça prend du temps. | ||
+ | |||
+ | On crée un premier un super user avec python3 manage.py createsuperuser | ||
+ | |||
+ | ===== Serveur web ===== | ||
+ | |||
+ | On utilise apache, voici la config : | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ServerName re2o.federez.net | ||
+ | ServerAlias re2o webldap webldap.federez.net | ||
+ | |||
+ | Redirect "/" | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | ServerName re2o.federez.net | ||
+ | ServerAlias re2o webldap webldap.federez.net | ||
+ | |||
+ | LogLevel warn | ||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | Alias /static / | ||
+ | |||
+ | WSGIScriptAlias / / | ||
+ | WSGIProcessGroup re2o | ||
+ | WSGIDaemonProcess re2o processes=2 threads=16 maximum-requests=1000 display-name=re2o | ||
+ | |||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | Include / | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | On peut à présent se connecter sur re2o.federez.net avec le compte qu'on a crée. | ||
===== Migration depuis l' | ===== Migration depuis l' |
admin/services/re2o.1511160918.txt.gz · Dernière modification : 2017/11/20 07:55 de chirac