Add SyncThing to kerighan
Also move services to shared for better composability.
This commit is contained in:
parent
643d415f23
commit
f2b1a68c7b
|
@ -6,8 +6,9 @@
|
||||||
[
|
[
|
||||||
../shared/shared-configuration.nix
|
../shared/shared-configuration.nix
|
||||||
./kernighan-hardware.nix
|
./kernighan-hardware.nix
|
||||||
|
../shared/services/syncthing.nix
|
||||||
#./services/git.nix
|
#./services/git.nix
|
||||||
#./services/nginx.nix
|
../shared/services/nginx.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
@ -9,10 +9,12 @@
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts."test.tsvallender.co.uk" = {
|
virtualHosts."syncthing.tsvallender.co.uk" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = "/var/www/tsvallender.co.uk";
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:8384";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
security.acme = {
|
security.acme = {
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "tsv";
|
||||||
|
dataDir = "/home/tsv/storagebox";
|
||||||
|
configDir = "/home/tsv/.config/syncthing";
|
||||||
|
extraOptions = {
|
||||||
|
gui.user = "tsv";
|
||||||
|
gui.password = "$2y$10$FQ.8RNztxQ1CvsnksTlYSOsgadHVc47yUhQQpc5X61BFVXXpDq..2";
|
||||||
|
gui.insecureSkipHostcheck = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue