syncthing: use nextcloud for fotos and music on smartphone now

This commit is contained in:
Ingolf Wagner 2020-03-05 13:55:08 +08:00
parent 7f741e5587
commit eb837a18a5
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
6 changed files with 31 additions and 57 deletions

View file

@ -50,10 +50,6 @@
enable = true; enable = true;
path = "/home/palo/pepe-schasch"; path = "/home/palo/pepe-schasch";
}; };
smartphone-fotos = {
enable = true;
path = "/home/palo/smartphone-fotos";
};
workout-pepe = { workout-pepe = {
enable = true; enable = true;
path = "/home/palo/pepe-workout"; path = "/home/palo/pepe-workout";

View file

@ -158,31 +158,31 @@
}; };
}; };
"nextcloud.gaykraft.com" = { #"nextcloud.gaykraft.com" = {
listen = [ # listen = [
{ # {
addr = "0.0.0.0"; # addr = "0.0.0.0";
port = 4443; # port = 4443;
ssl = true; # ssl = true;
} # }
{ # {
addr = "0.0.0.0"; # addr = "0.0.0.0";
port = 80; # port = 80;
ssl = false; # ssl = false;
} # }
]; # ];
forceSSL = true; # forceSSL = true;
enableACME = true; # enableACME = true;
locations."/" = { # locations."/" = {
proxyPass = "http://nextcloud.workhorse.private"; # proxyPass = "http://nextcloud.workhorse.private";
extraConfig = '' # extraConfig = ''
sub_filter "http://nextcloud.gaykraft.com" "https://nextcloud.gaykraft.com"; # sub_filter "http://nextcloud.gaykraft.com" "https://nextcloud.gaykraft.com";
sub_filter "nextcloud.workhorse.private" "nextcloud.gaykraft.com"; # sub_filter "nextcloud.workhorse.private" "nextcloud.gaykraft.com";
# used for view/edit office file via Office Online Server # # used for view/edit office file via Office Online Server
client_max_body_size 0; # client_max_body_size 0;
''; # '';
}; # };
}; #};
"seafile.gaykraft.com" = { "seafile.gaykraft.com" = {
listen = [ listen = [

View file

@ -38,14 +38,6 @@
enable = true; enable = true;
path = "/home/palo/samples"; path = "/home/palo/samples";
}; };
smartphone-fotos = {
enable = true;
path = "/home/palo/smartphone-fotos";
};
smartphone-music = {
enable = true;
path = "/home/palo/smartphone-music";
};
# no need to be encrypted # no need to be encrypted
# ----------------------- # -----------------------

View file

@ -31,12 +31,12 @@
autoUpdateApps.enable = true; autoUpdateApps.enable = true;
config.adminpassFile = toString <secrets/nextcloud/rootpassword>; config.adminpassFile = toString <secrets/nextcloud/rootpassword>;
nginx.enable = true; nginx.enable = true;
hostName = "nextcloud.workhorse.private"; hostName = "nextcloud.ingolf-wagner.de";
logLevel = 2; logLevel = 2;
config.overwriteProtocol = "https"; config.overwriteProtocol = "https";
config.extraTrustedDomains = [ config.extraTrustedDomains = [
"nextcloud.ingolf-wagner.de" "nextcloud.ingolf-wagner.de"
"nextcloud.gaykraft.com" #"nextcloud.gaykraft.com"
"192.168.100.11" "192.168.100.11"
]; ];
}; };
@ -59,8 +59,10 @@
recommendedProxySettings = true; recommendedProxySettings = true;
virtualHosts = { virtualHosts = {
"nextcloud.workhorse.private" = { "nextcloud.workhorse.private" = {
serverAliases = serverAliases = [
[ "nextcloud.ingolf-wagner.de" "nextcloud.gaykraft.com" ]; "nextcloud.ingolf-wagner.de"
# "nextcloud.gaykraft.com"
];
locations."/" = { locations."/" = {
proxyPass = "http://192.168.100.11"; proxyPass = "http://192.168.100.11";
extraConfig = '' extraConfig = ''

View file

@ -62,10 +62,6 @@
enable = true; enable = true;
path = "/home/palo/samples"; path = "/home/palo/samples";
}; };
smartphone-fotos = {
enable = true;
path = "/home/palo/smartphone-fotos";
};
video-material = { video-material = {
enable = true; enable = true;
path = "/home/palo/video-material"; path = "/home/palo/video-material";

View file

@ -137,18 +137,6 @@ with lib; {
watch = false; watch = false;
devices = [ "workhorse" "porani" ]; devices = [ "workhorse" "porani" ];
}; };
smartphone-music = {
enable = lib.mkDefault false;
id = "0vjze-xvs8n";
watch = false;
devices = [ "sterni" "smartphone" ];
};
smartphone-fotos = {
enable = lib.mkDefault false;
id = "e5823_jtbr-photos";
watch = false;
devices = [ "sterni" "workout" "pepe" "smartphone" ];
};
video-material = { video-material = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "wgkun-fec5h"; id = "wgkun-fec5h";