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;
path = "/home/palo/pepe-schasch";
};
smartphone-fotos = {
enable = true;
path = "/home/palo/smartphone-fotos";
};
workout-pepe = {
enable = true;
path = "/home/palo/pepe-workout";

View file

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

View file

@ -38,14 +38,6 @@
enable = true;
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
# -----------------------

View file

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

View file

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

View file

@ -137,18 +137,6 @@ with lib; {
watch = false;
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 = {
enable = lib.mkDefault false;
id = "wgkun-fec5h";