Nextcloud: Difference between revisions
imported>Onny mNo edit summary |
imported>Montyz m The example password will be rejected by nextcloud and not allow login. Also note the default user is admin, not root. |
||
| Line 3: | Line 3: | ||
== Installation == | == Installation == | ||
A minimal example to get a Nextcloud running on localhost should look like this | A minimal example to get a Nextcloud running on localhost should look like this, replacing <code>PWD</code> with a 10+ char password that meets [https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_password_policy.html Nextcloud's default password policy]. | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
environment.etc."nextcloud-admin-pass".text = " | environment.etc."nextcloud-admin-pass".text = "PWD"; | ||
services.nextcloud = { | services.nextcloud = { | ||
enable = true; | enable = true; | ||
| Line 15: | Line 15: | ||
</nowiki>}} | </nowiki>}} | ||
After that you will be able to login into your Nextcloud instance at http://localhost with user <code> | After that you will be able to login into your Nextcloud instance at http://localhost with user <code>admin</code> and password <code>PWD</code> as configured above. | ||
== Configuration == | == Configuration == | ||