syncthing: use nextcloud for fotos and music on smartphone now
This commit is contained in:
parent
7f741e5587
commit
eb837a18a5
6 changed files with 31 additions and 57 deletions
|
@ -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";
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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
|
||||||
# -----------------------
|
# -----------------------
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue