mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: nextcloud!
This commit is contained in:
parent
5f2626ac1e
commit
2093da9d90
1 changed files with 41 additions and 22 deletions
|
|
@ -1,40 +1,59 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
preliminarySelfsigned = false;
|
||||||
|
defaults = {
|
||||||
|
email = "ahwx@ahwx.org";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
home = "/home/liv/nextcloud";
|
home = "/var/nextcloud/home";
|
||||||
https = true;
|
https = true;
|
||||||
configureRedis = true; # caching
|
configureRedis = false; # caching
|
||||||
maxUploadSize = "10G";
|
maxUploadSize = "10G";
|
||||||
hostName = "cloud.liv.town";
|
hostName = "cloud.liv.town";
|
||||||
|
|
||||||
|
config = {
|
||||||
|
adminuser = "liv";
|
||||||
|
adminpassFile = "/var/nextcloud/AdminPass";
|
||||||
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
trusted_domains = [
|
trusted_domains = [
|
||||||
"cloud.liv.town"
|
"cloud.liv.town"
|
||||||
];
|
];
|
||||||
|
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\\TXT"
|
||||||
|
"OC\\Preview\\XBitmap"
|
||||||
|
"OC\\Preview\\HEIC"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions.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\\TXT"
|
|
||||||
"OC\\Preview\\XBitmap"
|
|
||||||
"OC\\Preview\\HEIC"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
services.nginx = {
|
||||||
acceptTerms = true;
|
enable = true;
|
||||||
certs = {
|
recommendedGzipSettings = true;
|
||||||
${config.services.nextcloud.hostName}.email = "ahwx@ahwx.org";
|
recommendedOptimisation = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
|
enableACME = true;
|
||||||
|
addSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:8080";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue