mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -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;
|
||||
host = "${nextcloud.name}.${domain.url0}";
|
||||
in {
|
||||
imports = [
|
||||
"${fetchTarball {
|
||||
url = "https://github.com/onny/nixos-nextcloud-testumgebung/archive/fa6f062830b4bc3cedb9694c1dbf01d5fdf775ac.tar.gz";
|
||||
sha256 = "0gzd0276b8da3ykapgqks2zhsqdv4jjvbv97dsxg0hgrhb74z0fs";
|
||||
}}/nextcloud-extras.nix"
|
||||
];
|
||||
|
||||
services = {
|
||||
nextcloud = {
|
||||
appstoreEnable = true;
|
||||
|
@ -26,7 +19,6 @@ in {
|
|||
enable = true;
|
||||
hostName = host;
|
||||
https = true;
|
||||
webserver = "caddy";
|
||||
package = pkgs.nextcloud30;
|
||||
phpOptions."opcache.interned_strings_buffer" = "24";
|
||||
extraAppsEnable = true;
|
||||
|
@ -63,16 +55,28 @@ in {
|
|||
"OC\\Preview\\XBitmap"
|
||||
"OC\\Preview\\HEIC"
|
||||
];
|
||||
trusted_proxies = [
|
||||
localhost
|
||||
];
|
||||
# trusted_proxies = [
|
||||
# localhost
|
||||
# ];
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.${host}.listen = [
|
||||
{
|
||||
addr = wildcard.ip.address1;
|
||||
port = nginx.ports.port0;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
caddy = {
|
||||
virtualHosts = {
|
||||
"https://${host}" = {
|
||||
"${host}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy ${localhost}:${toString nginx.ports.port0}
|
||||
|
||||
tls ${nextcloud.ssl.cert} ${nextcloud.ssl.key}
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
in {
|
||||
fileSystems = let
|
||||
synologyDrives = [
|
||||
# "folder0"
|
||||
# "folder1"
|
||||
# "folder2"
|
||||
# "folder3"
|
||||
"folder0"
|
||||
"folder1"
|
||||
"folder2"
|
||||
"folder3"
|
||||
];
|
||||
|
||||
storageDrives = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue