Nextcloud: Difference between revisions
imported>Onny Notes about mail delivery |
imported>NetaliDev SSL-Notes: add nginx vHost ACME example |
||
| Line 62: | Line 62: | ||
=== SSL notes === | === SSL notes === | ||
If you would like to setup Nextcloud with Let's Encrypt TLS certificates (or certs from any other certificate authority) make sure to set <code>services.nextcloud.https = true;</code>. | If you would like to setup Nextcloud with Let's Encrypt TLS certificates (or certs from any other certificate authority) make sure to set <code>services.nextcloud.https = true;</code> and to enable it in the nginx-vHost. | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
services.nextcloud = { | |||
enable = true; | |||
[...] | |||
hostName = "example.org"; | |||
https = true; | |||
}; | |||
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { | |||
forceSSL = true; | |||
enableACME = true; | |||
}; | |||
</nowiki>}} | |||
=== Mail delivery === | === Mail delivery === | ||