fixing nextcloud
This commit is contained in:
parent
27ba1de18d
commit
abcef8d92f
3 changed files with 17 additions and 10 deletions
|
@ -12,7 +12,7 @@
|
|||
services.mysqlBackup = {
|
||||
enable = true;
|
||||
databases = [ "property" ];
|
||||
user = "admin";
|
||||
#user = "admin";
|
||||
};
|
||||
|
||||
backup.dirs = [ config.services.mysqlBackup.location ];
|
||||
|
|
|
@ -175,6 +175,9 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
# in php
|
||||
services.phpfpm.phpPackage = pkgs.php73;
|
||||
|
||||
# nextcloud setup
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
|
@ -194,20 +197,27 @@ in {
|
|||
#logLevel = 0;
|
||||
https = true;
|
||||
config = {
|
||||
adminpassFile = toString <secrets/nextcloud/root_password>;
|
||||
adminpassFile =
|
||||
toString config.krops.userKeys."nextcloud_root".target;
|
||||
overwriteProtocol = "https";
|
||||
trustedProxies = [ "195.201.134.247" hostAddress ];
|
||||
dbtype = "mysql";
|
||||
dbpassFile = toString config.krops.userKeys."nextcloud".target;
|
||||
dbpassFile =
|
||||
toString config.krops.userKeys."nextcloud_database".target;
|
||||
dbport = 3306;
|
||||
};
|
||||
};
|
||||
|
||||
# provide password file for database with proper rights
|
||||
krops.userKeys."nextcloud" = {
|
||||
krops.userKeys."nextcloud_database" = {
|
||||
user = "nextcloud";
|
||||
source = toString <secrets/nextcloud/database_password>;
|
||||
requiredBy = [ "nginx.service" ];
|
||||
requiredBy = [ "nginx.service" "nextcloud-setup.service" ];
|
||||
};
|
||||
krops.userKeys."nextcloud_root" = {
|
||||
user = "nextcloud";
|
||||
source = toString <secrets/nextcloud/root_password>;
|
||||
requiredBy = [ "nginx.service" "nextcloud-setup.service" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.smbclient ];
|
||||
|
@ -238,10 +248,7 @@ in {
|
|||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"nextcloud.workhorse.private" = {
|
||||
serverAliases = [
|
||||
"nextcloud.ingolf-wagner.de"
|
||||
# "nextcloud.gaykraft.com"
|
||||
];
|
||||
serverAliases = [ "nextcloud.ingolf-wagner.de" ];
|
||||
locations."/" = {
|
||||
proxyPass = "http://${containerAddress}";
|
||||
extraConfig = ''
|
||||
|
|
|
@ -96,7 +96,7 @@ let
|
|||
#kops-lib.file = toString ~/dev/krops-lib;
|
||||
krops-lib.git = {
|
||||
url = "https://git.ingolf-wagner.de/nix-modules/krops.git";
|
||||
ref = "1.0.2";
|
||||
ref = "1.0.3";
|
||||
};
|
||||
|
||||
#cluster-module.file = toString ~/dev/cluster-module;
|
||||
|
|
Loading…
Reference in a new issue