Add file versioning and GUI password to syncthing
This commit is contained in:
parent
8f8aaf95a0
commit
c95fa674c2
1 changed files with 29 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue