mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-10 05:44:38 -05:00
feat: nextcloud test
This commit is contained in:
parent
7196dd5c7c
commit
034c88c0fd
2 changed files with 20 additions and 16 deletions
|
@ -11,13 +11,6 @@
|
||||||
localhost = wildcard.ip.address0;
|
localhost = wildcard.ip.address0;
|
||||||
host = "${nextcloud.name}.${domain.url0}";
|
host = "${nextcloud.name}.${domain.url0}";
|
||||||
in {
|
in {
|
||||||
imports = [
|
|
||||||
"${fetchTarball {
|
|
||||||
url = "https://github.com/onny/nixos-nextcloud-testumgebung/archive/fa6f062830b4bc3cedb9694c1dbf01d5fdf775ac.tar.gz";
|
|
||||||
sha256 = "0gzd0276b8da3ykapgqks2zhsqdv4jjvbv97dsxg0hgrhb74z0fs";
|
|
||||||
}}/nextcloud-extras.nix"
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
appstoreEnable = true;
|
appstoreEnable = true;
|
||||||
|
@ -26,7 +19,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = host;
|
hostName = host;
|
||||||
https = true;
|
https = true;
|
||||||
webserver = "caddy";
|
|
||||||
package = pkgs.nextcloud30;
|
package = pkgs.nextcloud30;
|
||||||
phpOptions."opcache.interned_strings_buffer" = "24";
|
phpOptions."opcache.interned_strings_buffer" = "24";
|
||||||
extraAppsEnable = true;
|
extraAppsEnable = true;
|
||||||
|
@ -63,16 +55,28 @@ in {
|
||||||
"OC\\Preview\\XBitmap"
|
"OC\\Preview\\XBitmap"
|
||||||
"OC\\Preview\\HEIC"
|
"OC\\Preview\\HEIC"
|
||||||
];
|
];
|
||||||
trusted_proxies = [
|
# trusted_proxies = [
|
||||||
localhost
|
# localhost
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts.${host}.listen = [
|
||||||
|
{
|
||||||
|
addr = wildcard.ip.address1;
|
||||||
|
port = nginx.ports.port0;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
caddy = {
|
caddy = {
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"https://${host}" = {
|
"${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
reverse_proxy ${localhost}:${toString nginx.ports.port0}
|
||||||
|
|
||||||
tls ${nextcloud.ssl.cert} ${nextcloud.ssl.key}
|
tls ${nextcloud.ssl.cert} ${nextcloud.ssl.key}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
in {
|
in {
|
||||||
fileSystems = let
|
fileSystems = let
|
||||||
synologyDrives = [
|
synologyDrives = [
|
||||||
# "folder0"
|
"folder0"
|
||||||
# "folder1"
|
"folder1"
|
||||||
# "folder2"
|
"folder2"
|
||||||
# "folder3"
|
"folder3"
|
||||||
];
|
];
|
||||||
|
|
||||||
storageDrives = [
|
storageDrives = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue