tweaks to nextcloud config
This commit is contained in:
parent
d3afaf234c
commit
0b023f20c5
|
@ -5,37 +5,7 @@ let
|
||||||
in
|
in
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
# security.acme = {
|
|
||||||
# acceptTerms = true;
|
|
||||||
# # defaults = {
|
|
||||||
# # email = "chris@tfcconnection.org";
|
|
||||||
# # # dnsProvider = "cloudflare";
|
|
||||||
# # # location of your CLOUDFLARE_DNS_API_TOKEN=[value]
|
|
||||||
# # # https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=
|
|
||||||
# # environmentFile = "/REPLACE/WITH/YOUR/PATH";
|
|
||||||
# # };
|
|
||||||
# };
|
|
||||||
services = {
|
services = {
|
||||||
# caddy = {
|
|
||||||
# virtualHosts = {
|
|
||||||
# "${dn}".extraConfig = ''
|
|
||||||
# encode gzip
|
|
||||||
# reverse_proxy localhost:8080
|
|
||||||
|
|
||||||
# redir /.well-known/carddav /remote.php/dav 301
|
|
||||||
# redir /.well-known/caldav /remote.php/dav 301
|
|
||||||
# header {
|
|
||||||
# Strict-Transport-Security "max-age=15768000; includeSubDomains; reload;"
|
|
||||||
# Access-Control-Allow-Origin *
|
|
||||||
# Referrer-Policy no-referrer-when-downgrade
|
|
||||||
# }
|
|
||||||
# redir /.well-known/oidc-configuration /apps/oidc/openid-configuration 301
|
|
||||||
# handle_path /whiteboard/* {
|
|
||||||
# reverse_proxy http://127.0.0.1:3002
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = dn;
|
hostName = dn;
|
||||||
|
@ -71,6 +41,25 @@ with lib;
|
||||||
trusted_domains = [ dn ];
|
trusted_domains = [ dn ];
|
||||||
trusted_proxies = [ "127.0.0.1" "24.225.22.143" "0.0.0.0" ];
|
trusted_proxies = [ "127.0.0.1" "24.225.22.143" "0.0.0.0" ];
|
||||||
maintenance_window_start = 1;
|
maintenance_window_start = 1;
|
||||||
|
preview_libreoffice_path = "${pkgs.libreoffice}/bin/libreoffice";
|
||||||
|
enabledPreviewProviders = [
|
||||||
|
"OC\Preview\BMP"
|
||||||
|
"OC\Preview\GIF"
|
||||||
|
"OC\Preview\JPEG"
|
||||||
|
"OC\Preview\Krita"
|
||||||
|
"OC\Preview\MarkDown"
|
||||||
|
"OC\Preview\MP3"
|
||||||
|
"OC\Preview\OpenDocument"
|
||||||
|
"OC\Preview\PNG"
|
||||||
|
"OC\Preview\HEIC"
|
||||||
|
"OC\Preview\SVG"
|
||||||
|
"OC\Preview\MSOfficeDoc"
|
||||||
|
"OC\Preview\MSOffice2007"
|
||||||
|
"OC\Preview\Movie"
|
||||||
|
"OC\Preview\Font"
|
||||||
|
"OC\Preview\TXT"
|
||||||
|
"OC\Preview\XBitmap"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
|
@ -82,7 +71,10 @@ with lib;
|
||||||
package = unstable.nextcloud-notify_push;
|
package = unstable.nextcloud-notify_push;
|
||||||
};
|
};
|
||||||
# Suggested by Nextcloud's health check.
|
# Suggested by Nextcloud's health check.
|
||||||
phpOptions."opcache.interned_strings_buffer" = "16";
|
phpOptions = {
|
||||||
|
"opcache.interned_strings_buffer" = "32";
|
||||||
|
"opcache.buffer" = "256";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts.${dn} = {
|
services.nginx.virtualHosts.${dn} = {
|
||||||
|
|
Loading…
Reference in a new issue