summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove default token which is deprecated since Nextcloud 13Joas Schilling2021-12-011-5/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix warning about passing null to rtrimCôme Chilliet2021-11-231-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow to serve static WebAssembly and TensorFlow Lite filesDaniel Calviño Sánchez2021-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Talk 13 (and thus Nextcloud 23) WebAssembly (.wasm) and TensorFlow Lite (.tflite) files need to be loaded from the web server to provide certain features (like the background blur in the WebUI). Those files can be treated in a similar way to other static resources, and there should not be any problem caching or compressing them. However, as compressed TensorFlow Lite files are only ~12% smaller, the compression directive depends on the MIME type and there is no standard MIME type for TensorFlow Lite files it is not worth to compress them. Moreover, no directives to compress WebAssembly files were added either, as it seems that they would override any other compression directives set in the default server configuration; for reference it could be done with something like: <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE application/wasm </IfModule> </IfModule> Depending on the setup "application/wasm" may not be associated with ".wasm" files, so the directive was added just in case, as otherwise browsers log a warning. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Profile backendChristopher Ng2021-10-191-0/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-091-1/+1
| | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Check that pdo is installedDaniel Kesselberg2021-07-051-1/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Merge pull request #22628 from Sp1l/simplify-htaccess-rewritesLukas Reschke2021-06-161-13/+6
|\ | | | | Coalesce RewriteCond lines in .htaccess
| * Coalesce RewriteCond lines in .htaccessBernard Spil2021-06-021-13/+6
| | | | | | And escape some '.' where not yet escaped
* | Use product name in places where it is appropriate rather than the instance nameJulius Härtl2021-06-161-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Unify spellingValdnet2021-05-201-1/+1
| | | Spelling unification in Nextcloud applications.
* Less ILoggerJoas Schilling2021-04-271-13/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Print an exception trace for setup exceptionsChristoph Wurst2021-01-071-0/+4
| | | | | | | | | Right now any setup error will just result in the exception message being printed. In some cases this doesn't give any insights into what went wrong. This adds some dedicated logic to print the exception trace and any previous exceptions to the CLI. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add htaccess exception for richdocumentscode_arm64Julius Härtl2020-09-171-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't use deprecated getIniWrapper() anymoreJoas Schilling2020-08-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add audio formats to htaccessKevin Lanni2020-06-241-1/+1
| | | | Signed-off-by: Kevin Lanni <therealklanni@gmail.com>
* Update hub bundle and add proxy rule to htaccessJulius Härtl2020-05-251-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add visibility to all properties and move static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-5/+5
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to serve static mp4 directlyJulius Härtl2020-02-121-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow to serve static webm directlyRoeland Jago Douma2020-02-121-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #19303 from nextcloud/test/debug-installJoas Schilling2020-02-061-3/+11
|\ | | | | Fix occ maintenance:install database connect failure
| * Split the exception handling so install errors don't log as setup errorsJoas Schilling2020-02-051-3/+11
| | | | | | | | | | | | More gebuging Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix data Apache2 .htaccess typoSimounet2020-02-051-1/+1
|/ | | | Signed-off-by: Simounet <contact@simounet.net>
* Update license headers for 18Christoph Wurst2019-12-201-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #16792 from MichaIng/patch-1Roeland Jago Douma2019-12-191-13/+23
|\ | | | | Harden data and config protection .htaccess
| * Merge branch 'master' into patch-1MichaIng2019-12-041-41/+52
| |\
| * | Add missing newlines to .htaccessMichaIng2019-10-311-2/+2
| | | | | | | | | Signed-off-by: MichaIng <micha@dietpi.com>
| * | Add "Order" to assure that no parental "Allow" can grant accessMichaIng2019-09-261-0/+2
| | | | | | | | | Signed-off-by: MichaIng <micha@dietpi.com>
| * | Minor syntaxMichaIng2019-08-191-21/+21
| | | | | | | | | | | | | | | | | | | | | + Use Apache syntax with cases according to official docs: https://github.com/nextcloud/server/pull/16792/files#r315207691 + Add missing whitespace for concatenating strings to variable: https://github.com/nextcloud/server/pull/16792/files#r315207520 + Apache 2.5 will be released as 2.6: https://github.com/nextcloud/server/pull/16792/files#r315206147 Signed-off-by: Micha Felle <micha@dietpi.com>
| * | Update lib/private/Setup.php MichaIng2019-08-191-1/+1
| | | | | | | | | | | | | | | + Remove unnecessary spaces from code Co-Authored-By: Daniel Kesselberg <mail@danielkesselberg.de>
| * | Harden data protection .htaccessMichaIng2019-08-191-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Set "Satisfy All" whenever available, as well on Apache 2.4+. This is required to override possible "Satisfy Any" on parent dir, which otherwise would allow direct access to data, regardless of "Require" directive. + Set "Deny from all" as well whenever available, to block access regardless of which access control directive takes priority. + Assume Apache 2.2 only, if mod_authz_core and mod_access_compat are both not available, to avoid doubled directives. In this case set "Deny from all" directive only if the providing mod_authz_host module is available. "Satisfy" is a core directive on Apache 2.2. + Update Apache version strings. Regarding the used directives/modules, Apache 2.4 and 2.5 behave the same. + Add ordering spaces to better reflect the nested directives and to match style of other .htaccess files. Fixes: https://github.com/nextcloud/server/issues/6449 Signed-off-by: Micha Felle <micha@dietpi.com>
* | | Update license headersChristoph Wurst2019-12-051-4/+7
| |/ |/| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Set last-password-confirmation for setupRoeland Jago Douma2019-12-031-0/+4
| | | | | | | | | | | | | | Else you have to enter your password directly after setup if you do anything admin worthy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | reformat Setup.phpArthur Schiwon2019-11-251-55/+59
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix documentation, get and createGroup may return nullArthur Schiwon2019-11-251-1/+4
|/ | | | | | * also have stricter checks in place Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow to access source maps on apacheJulius Härtl2019-06-191-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* make sure that the ocm end-point discovery /ocm-provider is not redirected ↵Bjoern Schiessle2019-02-201-0/+1
| | | | | | to the index.php Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix loading of .woff2 files in .htaccessJulius Härtl2018-11-181-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #11446 from nextcloud/bugfix/10678/pretty-urls-dont-workMorris Jobke2018-10-021-3/+2
|\ | | | | Allow overwrite.cli.url without trailing slash
| * Allow url without / for overwrite.cli.urlDaniel Kesselberg2018-09-281-3/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Validate email in occ commandDaniel Kesselberg2018-10-021-6/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Use setUserValue instead setEMailAddress because latter omits an changeUser ↵Daniel Kesselberg2018-10-021-8/+10
| | | | | | | | | | | | events. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Add --admin-email to cli installerDaniel Kesselberg2018-10-021-0/+9
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>