Add file versioning and GUI password to syncthing

This commit is contained in:
Yan Lin 2025-09-07 03:39:12 +02:00
parent 8f8aaf95a0
commit c95fa674c2

View file

@ -40,19 +40,48 @@
path = "~/Credentials";
devices = [ "ipad" "mba" "iphone" "imac" "hs" ];
ignorePerms = true;
versioning = {
type = "staggered";
params = {
maxAge = "15552000"; # 180 days in seconds
cleanInterval = "3600"; # Clean every hour
};
};
};
"Documents" = {
path = "~/Documents";
devices = [ "mba" "imac" "hs" ];
ignorePerms = true;
versioning = {
type = "staggered";
params = {
maxAge = "15552000"; # 180 days in seconds
cleanInterval = "3600"; # Clean every hour
};
};
};
"Obsidian" = {
path = "~/Obsidian";
devices = [ "ipad" "mba" "iphone" "imac" "hs" ];
ignorePerms = true;
versioning = {
type = "staggered";
params = {
maxAge = "15552000"; # 180 days in seconds
cleanInterval = "3600"; # Clean every hour
};
};
};
};
# GUI settings with authentication
gui = {
enabled = true;
user = "yanlin";
password = "1Hayashi-2Hiko"; # You should change this password
useTLS = false; # TLS is handled by Traefik
};
# Additional settings
options = {
urAccepted = -1; # Disable usage reporting