Infrastruktur/NextCloud: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 27: | Line 27: | ||
==Migration von UCS== |
==Migration von UCS== |
||
| + | * Nextcloud installieren |
||
| ⚫ | |||
| + | **Datenbank im PostgresSQL erstell und Nutzer inkl Rechten definieren |
||
| + | ***<code>CREATE USER nextcloud WITH PASSWORD 'password'; CREATE DATABASE nextclouddb TEMPLATE template0 ENCODING 'UNICODE';</code> |
||
| + | ***<code>ALTER DATABASE nextclouddb OWNER TO username; GRANT ALL PRIVILEGES ON DATABASE nextclouddb TO nextcloud;</code> |
||
| + | **autoconfig.php erstellen |
||
| + | *** <syntaxhighlight lang="php" line="1"> |
||
| + | <?php |
||
| + | $AUTOCONFIG = array( |
||
| + | "dbtype" => pgsql", |
||
| + | "dbname" => "nextclouddb", |
||
| + | "dbuser" => "nextcloud", |
||
| + | "dbpass" => "password", |
||
| + | "dbhost" => "localhost", |
||
| + | "dbtableprefix" => "", |
||
| + | "adminlogin" => "adminlogin", |
||
| + | "adminpass" => "adminpass", |
||
| + | "directory" => "/var/www/nextcloud/data", |
||
| + | ); |
||
| + | ?> |
||
| + | </syntaxhighlight> |
||
| + | |||
| ⚫ | |||
** > Share-Tabellen (!) extra ex/importieren |
** > Share-Tabellen (!) extra ex/importieren |
||
| − | *Daten migrieren |
+ | *Daten migrieren mithilfe von unterschiedlichsten Scripten |
| − | * |
+ | * Gruppenordner via occ ausgeben und als Texttabelle sichern |
| + | **Textabelle in yaml Datei umwandeln |
||
| + | * |
||
Revision as of 15:41, 11 January 2022
Requirements
- PostgreSQL
- PHP (mit php-ldap, php-pgsql, php-redis)
- nginx
- redis
Unsere NextCloud Einstellungen
autoconfig.php– Datenbank + Adminaccount- PostgreSQL
- Admin zur Basisconfiguration
- LDAP – mit UCS-LDAP und nextCloud-LDAP-Plugin
- > seperater LDAP-Benutzername für LDAP
- > BaseDN
cn=users,dc=dezentrale,dc=intranet - > Benutzernamen als
uiddamit Benutzer = nick (Experteneinstellungen) - > Gruppen-Member als
memberUidum Administration über LDAP zu ermöglichen (Advanced -> Directory)
- Gruppenordner
- > Gruppen und deren Mitglieder werden aus LDAP entnommen und entsprechend verknotet
NextCloud Tools
- OCC (OwnCloudClient) – Terminalclient für die Administration
Migration von UCS
- Nextcloud installieren
- Datenbank im PostgresSQL erstell und Nutzer inkl Rechten definieren
CREATE USER nextcloud WITH PASSWORD 'password'; CREATE DATABASE nextclouddb TEMPLATE template0 ENCODING 'UNICODE';ALTER DATABASE nextclouddb OWNER TO username; GRANT ALL PRIVILEGES ON DATABASE nextclouddb TO nextcloud;
- autoconfig.php erstellen
<?php $AUTOCONFIG = array( "dbtype" => pgsql", "dbname" => "nextclouddb", "dbuser" => "nextcloud", "dbpass" => "password", "dbhost" => "localhost", "dbtableprefix" => "", "adminlogin" => "adminlogin", "adminpass" => "adminpass", "directory" => "/var/www/nextcloud/data", ); ?>
- Datenbank im PostgresSQL erstell und Nutzer inkl Rechten definieren
- Datenbank exportieren
- > Share-Tabellen (!) extra ex/importieren
- Daten migrieren mithilfe von unterschiedlichsten Scripten
- Gruppenordner via occ ausgeben und als Texttabelle sichern
- Textabelle in yaml Datei umwandeln