Nextcloud: Difference between revisions

Raboof (talk | contribs)
Migration: example code for clearing acmeRoot
Raboof (talk | contribs)
formatting
Line 266: Line 266:
** [https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#passwordsalt passwordsalt]
** [https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#passwordsalt passwordsalt]
** [https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#secret secret]  
** [https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#secret secret]  
* To be able to configure TLS for your new instance before you've updated your DNS record, you can use [[ACME#DNS challenge|ACME DNS Challenge]]. Don't forget to clear <code>acmeRoot</code>:  
* To be able to configure TLS for your new instance before you've updated your DNS record, you can use [[ACME#DNS challenge|ACME DNS Challenge]]. Don't forget to clear <code>acmeRoot</code>:
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
 
  forceSSL = true;
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
  enableACME = true;
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
  # force DNS-01 validation
  forceSSL = true;
  acmeRoot = null;
  enableACME = true;
};
  # force DNS-01 validation
  acmeRoot = null;
};
</nowiki>}}


== Clients ==
== Clients ==