blob: 2690e78bf68b91af84cda96f98e985acd67f9c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ ... }:
{
services.syncthing = {
enable = true;
openDefaultPorts = true;
guiAddress = "[::1]:8384";
devices = {
"sparky" = {
id = "FE43LDI-33WS467-LIGFWCC-5PPSKN6-GYODEWJ-KLQZLN7-H3GYGLG-IJ2JGQW";
introducer = true;
autoAcceptFolders = true;
};
"Joes-iPhone-6" = {
id = "F5APH5K-XXO454B-6YU4BTT-YPHF4KT-OD7YF5Y-JTWJRSU-UNJ2KZK-IVJZNQT";
autoAcceptFolders = true;
};
"iPad" = {
id = "U7D7667-RFEFHXX-TUJGGII-CE62S6P-YC6MWNV-4LBJ4YJ-5ZUZVPT-GBC5PQH";
autoAcceptFolders = true;
};
};
folders = {
"Sync" = {
id = "7thks-5badk";
path = "/var/lib/syncthing/Sync";
versioning = {
type = "staggered";
params = {
cleanInterval = "3600";
maxAge = "31536000";
};
};
devices = [ "sparky" "Joes-iPhone-6" "iPad" ];
};
};
};
services.nginx.virtualHosts."st.weebnix.mou.fo" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://[::1]:8384";
# https://docs.syncthing.net/users/faq.html#why-do-i-get-host-check-error-in-the-gui-api
recommendedProxySettings = false;
};
};
services.oauth2_proxy.nginx.virtualHosts = [ "st.weebnix.mou.fo" ];
}
|