Nextcloud

Aus WIKI
Zur Navigation springen Zur Suche springen

nextcloud installieren emerge -av nextcloud

Datenbank-Nutzer in mariadb anlegen

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';

Firewall probleme:

nextcloud versucht beim login nach hause zu telefonieren um genau zu sein nach https://apps.owncloud.com um zB neue versionen von apps anzeigen lassen zu können... Das versuch ich zu unterbinden in dem ich an der Methode viewApps() der Klasse settings/Controller/AppSettingsController ein wenig manipuliere.

        /**
         * @NoCSRFRequired
         * @param string $category
         * @return TemplateResponse
         */
        public function viewApps($category = '') {
                $categoryId = $this->getCategory($category);
                if ($categoryId === self::CAT_ENABLED) {
                        // Do not use an arbitrary input string, because we put the category in html
                        $category = 'enabled';
                }

                $params = [];
                $params['experimentalEnabled'] = $this->config->getSystemValue('appstore.experimental.enabled', false);
                $params['category'] = $category;
                $params['appstoreEnabled'] = $this->config->getSystemValue('appstoreenabled', true) === true;
                $this->navigationManager->setActiveEntry('core_apps');

                $templateResponse = new TemplateResponse($this->appName, 'apps', $params, 'user');
                $policy = new ContentSecurityPolicy();
//              $policy->addAllowedImageDomain('https://apps.owncloud.com');
                $templateResponse->setContentSecurityPolicy($policy);

                return $templateResponse;
        }